[tracker] libtracker-data: plug a leak.



commit 059f00252df97cd9a45cce7effef0b715f58ec92
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon May 30 17:57:14 2011 +0200

    libtracker-data: plug a leak.

 src/libtracker-data/tracker-class.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-data/tracker-class.c b/src/libtracker-data/tracker-class.c
index 8fbddc7..3048560 100644
--- a/src/libtracker-data/tracker-class.c
+++ b/src/libtracker-data/tracker-class.c
@@ -407,6 +407,10 @@ tracker_class_reset_super_classes (TrackerClass *service)
 
 	priv = GET_PRIV (service);
 
+	if (priv->last_super_classes) {
+		g_array_free (priv->last_super_classes, TRUE);
+	}
+
 	priv->last_super_classes = priv->super_classes;
 	priv->super_classes = g_array_new (TRUE, TRUE, sizeof (TrackerClass *));
 }



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