[tracker] TrackerProperty: Plug some leaks.



commit 41e42e703c34e71851ca49ceb4861f3f0c4aaad8
Author: Carlos Garnacho <carlos gnome org>
Date:   Tue Dec 1 18:38:38 2009 +0200

    TrackerProperty: Plug some leaks.

 src/libtracker-common/tracker-property.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-common/tracker-property.c b/src/libtracker-common/tracker-property.c
index 79d7b26..39cf82f 100644
--- a/src/libtracker-common/tracker-property.c
+++ b/src/libtracker-common/tracker-property.c
@@ -279,6 +279,14 @@ property_finalize (GObject *object)
 	g_free (priv->uri);
 	g_free (priv->name);
 
+	if (priv->domain) {
+		g_object_unref (priv->domain);
+	}
+
+	if (priv->range) {
+		g_object_unref (priv->range);
+	}
+
 	g_array_free (priv->super_properties, TRUE);
 
 	(G_OBJECT_CLASS (tracker_property_parent_class)->finalize) (object);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]