# HG changeset patch # User Mark Doliner # Date 1080092224 0 # Node ID 8a1421dcef6063f51ee81344487545f71dec6785 # Parent 244a49ab79ef38c4c331d1fca8d92ec12dcfbefe [gaim-migrate @ 9229] Fix a memleak when adding smiley themes and leave a note about another possible leak. committer: Tailor Script diff -r 244a49ab79ef -r 8a1421dcef60 src/gtkprefs.c --- a/src/gtkprefs.c Tue Mar 23 23:23:52 2004 +0000 +++ b/src/gtkprefs.c Wed Mar 24 01:37:04 2004 +0000 @@ -421,6 +421,11 @@ "%s", theme->name, theme->author, theme->desc); gtk_list_store_append (smiley_theme_store, &iter); + + /* + * LEAK - Gentoo memprof thinks pixbuf is leaking here... but it + * looks like it should be ok to me. Anyone know what's up? --Mark + */ pixbuf = gdk_pixbuf_new_from_file(theme->icon, NULL); gtk_list_store_set(smiley_theme_store, &iter, @@ -452,6 +457,7 @@ #endif gchar *destdir; gchar *tail; + GtkTreePath *themepath = NULL; /* Just to be safe */ g_strchomp(path); @@ -489,7 +495,9 @@ #endif g_free(destdir); - theme_refresh_theme_list(); + themepath = theme_refresh_theme_list(); + if (themepath != NULL) + gtk_tree_path_free(themepath); } static void