iconfactory: Initialize varibale to NULL in failure path

Otherwise we use random memory and that is not good.
This commit is contained in:
Benjamin Otte 2010-09-09 23:09:07 +02:00
parent 8929321cba
commit 0c285bad75

View File

@ -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
{