1
0
Fork 0

MetaBackgroundImage: free the GdkPixbuf after creating a texture

The GdkPixbuf used to load a texture was never freed.
This commit is contained in:
Owen W. Taylor 2014-09-29 21:01:50 -04:00
parent 5e249ad5eb
commit b735571688

View file

@ -185,6 +185,9 @@ file_loaded (GObject *source_object,
image->texture = texture;
out:
if (pixbuf != NULL)
g_object_unref (pixbuf);
image->loaded = TRUE;
g_signal_emit (image, signals[LOADED], 0);
}