Commit 5ed8cf50 authored by Matthias Clasen's avatar Matthias Clasen

Don't dereference a NULL error

This was pointed out in bug 595790.
parent 2e8b6757
......@@ -1500,9 +1500,10 @@ render_icon_name_pixbuf (GtkIconSource *icon_source,
if (!tmp_pixbuf)
{
g_warning ("Error loading theme icon '%s' for stock: %s",
icon_source->source.icon_name, error->message);
g_error_free (error);
g_warning ("Error loading theme icon '%s' for stock: %s",
icon_source->source.icon_name, error ? error->message : "");
if (error)
g_error_free (error);
return NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment