mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-01 00:11:29 +00:00
Fix leak when parsing image urls
This commit is contained in:
parent
af200feb0e
commit
cb625d21b4
@ -97,11 +97,11 @@ gtk_css_image_url_parse (GtkCssImage *image,
|
||||
_gtk_css_parser_take_error (parser, error);
|
||||
return FALSE;
|
||||
}
|
||||
g_object_unref (file);
|
||||
|
||||
pixbuf = gdk_pixbuf_new_from_stream (G_INPUT_STREAM (input), NULL, &error);
|
||||
g_object_unref (input);
|
||||
}
|
||||
g_object_unref (file);
|
||||
|
||||
if (pixbuf == NULL)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user