changeset 15014:b188da596c46

[gaim-migrate @ 17794] plug some leaks. committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Tue, 21 Nov 2006 00:38:35 +0000
parents 4b7065af8549
children f54c3349a7aa
files gtk/gtkdocklet.c
diffstat 1 files changed, 9 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/gtk/gtkdocklet.c	Mon Nov 20 22:39:08 2006 +0000
+++ b/gtk/gtkdocklet.c	Tue Nov 21 00:38:35 2006 +0000
@@ -122,16 +122,19 @@
 
 	if (!strcmp(gaim_prefs_get_string("/gaim/gtk/docklet/show"), "pending")) {
 		if (convs && ui_ops->create && !visibility_manager) {
-	 		ui_ops->create();
-	   		return FALSE;
+			g_list_free(convs);
+			ui_ops->create();
+			return FALSE;
 		} else if (!convs && ui_ops->destroy && visibility_manager) {
-	  		ui_ops->destroy();
-	  	 	return FALSE;
+			ui_ops->destroy();
+			return FALSE;
 		}
 	}
 
-	if (!visibility_manager)
+	if (!visibility_manager) {
+		g_list_free(convs);
 		return FALSE;
+	}
 
 	if (convs != NULL) {
 		pending = TRUE;
@@ -307,7 +310,7 @@
 	} else {
 		docklet_update_status();
 	}
-			
+
 }
 
 /**************************************************************************