(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).

This commit is contained in:
Charles Kerr 2009-08-11 19:36:11 +00:00
parent 3cdaeef78f
commit 2a7fe76098
1 changed files with 1 additions and 1 deletions

View File

@ -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;