MetaBackgroundImage: free the GdkPixbuf after creating a texture
The GdkPixbuf used to load a texture was never freed.
This commit is contained in:
parent
5e249ad5eb
commit
b735571688
@ -185,6 +185,9 @@ file_loaded (GObject *source_object,
|
|||||||
image->texture = texture;
|
image->texture = texture;
|
||||||
|
|
||||||
out:
|
out:
|
||||||
|
if (pixbuf != NULL)
|
||||||
|
g_object_unref (pixbuf);
|
||||||
|
|
||||||
image->loaded = TRUE;
|
image->loaded = TRUE;
|
||||||
g_signal_emit (image, signals[LOADED], 0);
|
g_signal_emit (image, signals[LOADED], 0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user