diff src/gtkprefs.c @ 5870:44d381ad19a9

[gaim-migrate @ 6302] This is some mem leak fixes. I made the select buddy icon dialog be openable twice, and not give gdk messages. It should all be reasonably clutch. Also, tonight is Chips & Dip night, so get some Chips & Dip, some people, possibly some alcohol, and probably a movie. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 14 Jun 2003 20:23:20 +0000
parents d048e5f2af27
children 059d95c67cda
line wrap: on
line diff
--- a/src/gtkprefs.c	Sat Jun 14 18:49:20 2003 +0000
+++ b/src/gtkprefs.c	Sat Jun 14 20:23:20 2003 +0000
@@ -2030,8 +2030,10 @@
 				gaim_gtk_sound_get_event_option(j));
 		const char *label = gaim_gtk_sound_get_event_label(j);
 
-		if (label == NULL)
+		if (label == NULL) {
+			g_free(pref);
 			continue;
+		}
 
 		gtk_list_store_append (event_store, &iter);
 		gtk_list_store_set(event_store, &iter,