forked from AuroraMiddleware/gtk
iconfactory: Initialize varibale to NULL in failure path
Otherwise we use random memory and that is not good.
This commit is contained in:
parent
8929321cba
commit
0c285bad75
@ -1463,6 +1463,8 @@ render_icon_name_pixbuf (GtkIconSource *icon_source,
|
||||
tmp_pixbuf = gtk_icon_info_load_icon (info, &error);
|
||||
gtk_icon_info_free (info);
|
||||
}
|
||||
else
|
||||
tmp_pixbuf = NULL;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user