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:
parent
3cdaeef78f
commit
2a7fe76098
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue