GNOME Bugzilla – Bug 790171
gtk+4, GtkCssImageIconTheme: Don't unref a NULL pointer
Last modified: 2017-11-10 15:51:43 UTC
In gtk_css_image_icon_theme_snapshot(), g_object_unref(icon_info) is called without first testing if icon_info is NULL, which it can be. If it is, g_object_unref() prints a critical message. From gtk+/build/demos/gtk-demo/gtk4-demo: (gtk4-demo:19335): GLib-GObject-CRITICAL **: 13:15:55.219: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
Created attachment 363347 [details] [review] patch: GtkCssImageIconTheme: Don't try to unref a NULL pointer
Review of attachment 363347 [details] [review]: sure