1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 00:34:04 +00:00

(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

View file

@ -130,7 +130,7 @@ get_themed_icon_pixbuf( GThemedIcon *icon,
int size, int size,
GtkIconTheme *icon_theme ) GtkIconTheme *icon_theme )
{ {
char ** icon_names; char ** icon_names = NULL;
GtkIconInfo * icon_info; GtkIconInfo * icon_info;
GdkPixbuf * pixbuf; GdkPixbuf * pixbuf;
GError * error = NULL; GError * error = NULL;