From 2a7fe7609863d9a6b4f9a32244402a08108736b4 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 11 Aug 2009 19:36:11 +0000 Subject: [PATCH] (gtk trunk) possible fix for #2267: gdb says it's crashing in g_strfreev(). possibly the pointer being passed to g_strfreev() isn't initialized properly if the GThemedIcon's is NULL (or if somehow its "names" property isn't found). --- gtk/icons.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/icons.c b/gtk/icons.c index 8c57c4683..45db60b1b 100644 --- a/gtk/icons.c +++ b/gtk/icons.c @@ -130,7 +130,7 @@ get_themed_icon_pixbuf( GThemedIcon *icon, int size, GtkIconTheme *icon_theme ) { - char ** icon_names; + char ** icon_names = NULL; GtkIconInfo * icon_info; GdkPixbuf * pixbuf; GError * error = NULL;