changeset 30879:735c759d80d6

Using if (x) g_free(x) is unnecessary.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Thu, 26 Aug 2010 04:28:20 +0000
parents 4c050b6e9bd1
children dbca01e4c689
files pidgin/plugins/gevolution/add_buddy_dialog.c pidgin/plugins/gevolution/new_person_dialog.c
diffstat 2 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/plugins/gevolution/add_buddy_dialog.c	Wed Aug 25 19:14:48 2010 +0000
+++ b/pidgin/plugins/gevolution/add_buddy_dialog.c	Thu Aug 26 04:28:20 2010 +0000
@@ -54,8 +54,7 @@
 
 	gevo_addrbooks_model_unref(dialog->addrbooks);
 
-	if (dialog->username != NULL)
-		g_free(dialog->username);
+	g_free(dialog->username);
 
 	g_free(dialog);
 
--- a/pidgin/plugins/gevolution/new_person_dialog.c	Wed Aug 25 19:14:48 2010 +0000
+++ b/pidgin/plugins/gevolution/new_person_dialog.c	Thu Aug 26 04:28:20 2010 +0000
@@ -204,8 +204,7 @@
 	if (name != NULL)
 		e_contact_name_free(name);
 
-	if (full_name != NULL)
-		g_free(full_name);
+	g_free(full_name);
 
 	delete_win_cb(NULL, NULL, dialog);
 }