[tracker/tracker-0.10] libtracker-data: plug a leak.
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.10] libtracker-data: plug a leak.
- Date: Thu, 2 Jun 2011 17:20:21 +0000 (UTC)
commit 1ad58eea9362ac1c8d860a593767ed549e2ae3a3
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]