From b7355716885b8098107db16f633e230cd67f53bf Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Mon, 29 Sep 2014 21:01:50 -0400 Subject: [PATCH] MetaBackgroundImage: free the GdkPixbuf after creating a texture The GdkPixbuf used to load a texture was never freed. --- src/compositor/meta-background-image.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/compositor/meta-background-image.c b/src/compositor/meta-background-image.c index 1f32f98e2..af66755dc 100644 --- a/src/compositor/meta-background-image.c +++ b/src/compositor/meta-background-image.c @@ -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); }