[mutter] background: Fix memory leak
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] background: Fix memory leak
- Date: Mon, 29 Apr 2013 13:52:34 +0000 (UTC)
commit 8880dffbdba16c0bbcc768a6179fd9231a60a20e
Author: Pavel Vasin <rat4vier gmail com>
Date: Tue Apr 23 13:02:04 2013 +0400
background: Fix memory leak
https://bugzilla.gnome.org/show_bug.cgi?id=698710
src/compositor/meta-background.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/compositor/meta-background.c b/src/compositor/meta-background.c
index 727000f..fca5dce 100644
--- a/src/compositor/meta-background.c
+++ b/src/compositor/meta-background.c
@@ -473,6 +473,17 @@ meta_background_dispose (GObject *object)
}
static void
+meta_background_finalize (GObject *object)
+{
+ MetaBackground *self = META_BACKGROUND (object);
+ MetaBackgroundPrivate *priv = self->priv;
+
+ g_free (priv->filename);
+
+ G_OBJECT_CLASS (meta_background_parent_class)->finalize (object);
+}
+
+static void
ensure_pipeline (MetaBackground *self)
{
if (self->priv->pipeline == NULL)
@@ -643,6 +654,7 @@ meta_background_class_init (MetaBackgroundClass *klass)
g_type_class_add_private (klass, sizeof (MetaBackgroundPrivate));
object_class->dispose = meta_background_dispose;
+ object_class->finalize = meta_background_finalize;
object_class->set_property = meta_background_set_property;
object_class->get_property = meta_background_get_property;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]