mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 22:10:08 +00:00
rendernodeparser: Fix a memory leak when parsing textures
This commit is contained in:
parent
e904c49e8a
commit
9728dabf12
@ -94,6 +94,7 @@ parse_texture (GtkCssParser *parser,
|
|||||||
if (bytes)
|
if (bytes)
|
||||||
{
|
{
|
||||||
stream = g_memory_input_stream_new_from_bytes (bytes);
|
stream = g_memory_input_stream_new_from_bytes (bytes);
|
||||||
|
g_bytes_unref (bytes);
|
||||||
pixbuf = gdk_pixbuf_new_from_stream (stream, NULL, &error);
|
pixbuf = gdk_pixbuf_new_from_stream (stream, NULL, &error);
|
||||||
g_object_unref (stream);
|
g_object_unref (stream);
|
||||||
if (pixbuf != NULL)
|
if (pixbuf != NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user