iconfactory: Initialize varibale to NULL in failure path
Otherwise we use random memory and that is not good.
This commit is contained in:
committed by
Matthias Clasen
parent
e048de9cab
commit
b7ab0ed129
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user