mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-16 15:14:17 +00:00
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);
|
tmp_pixbuf = gtk_icon_info_load_icon (info, &error);
|
||||||
gtk_icon_info_free (info);
|
gtk_icon_info_free (info);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
tmp_pixbuf = NULL;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user