GtkCssImageIconTheme: Don't try to unref a NULL pointer

In gtk_css_image_icon_theme_snapshot(), don't try to unref icon_info
if it's NULL.

https://bugzilla.gnome.org/show_bug.cgi?id=790171
This commit is contained in:
Kjell Ahlstedt 2017-11-10 16:48:30 +01:00
parent 1da8c1b27f
commit b0d1ae4a5c

View File

@ -100,7 +100,8 @@ gtk_css_image_icon_theme_snapshot (GtkCssImage *image,
icon_theme->cached_symbolic = symbolic;
g_object_unref (pixbuf);
g_object_unref (icon_info);
if (icon_info)
g_object_unref (icon_info);
}
texture_width = (double) gdk_texture_get_width (texture) / icon_theme->scale;