Revision: 192 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=192&view=rev Author: frlan Date: 2008-10-01 22:57:16 +0000 (Wed, 01 Oct 2008)
Log Message: ----------- GeanySendMail: Removed unneeded test for NULL-pointer since g_free() is already doing this
Modified Paths: -------------- trunk/geanysendmail/src/geanysendmail.c
Modified: trunk/geanysendmail/src/geanysendmail.c =================================================================== --- trunk/geanysendmail/src/geanysendmail.c 2008-09-30 21:02:08 UTC (rev 191) +++ trunk/geanysendmail/src/geanysendmail.c 2008-10-01 22:57:16 UTC (rev 192) @@ -159,8 +159,7 @@ { g_key_file_load_from_file(config, config_file, G_KEY_FILE_NONE, NULL);
- if (address != NULL) - g_free(address); + g_free(address); address = g_strdup(gtk_entry_get_text(GTK_ENTRY(entry)));
g_key_file_set_string(config, "tools", "address", address); @@ -459,7 +458,6 @@ gtk_widget_destroy(plugin_fields->menu_item); cleanup_icon(); g_free(mailer); - if (address != NULL) - g_free(address); + g_free(address); g_free(config_file); }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.