[tracker/extractor-controller-thread] tracker-extract: Make sure we finalize the extractor object to print summary



commit 678f3a9ff23df81d5e16329981505ccb21481d2b
Author: Martyn Russell <martyn lanedo com>
Date:   Wed Apr 13 10:39:16 2011 +0100

    tracker-extract: Make sure we finalize the extractor object to print summary

 src/tracker-extract/tracker-controller.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-extract/tracker-controller.c b/src/tracker-extract/tracker-controller.c
index 51cb6c8..bf7d749 100644
--- a/src/tracker-extract/tracker-controller.c
+++ b/src/tracker-extract/tracker-controller.c
@@ -131,7 +131,6 @@ tracker_controller_initable_iface_init (GInitableIface *iface)
 	iface->init = tracker_controller_initable_init;
 }
 
-
 static void
 tracker_controller_finalize (GObject *object)
 {
@@ -148,6 +147,10 @@ tracker_controller_finalize (GObject *object)
 
 	tracker_controller_dbus_stop (controller);
 
+	if (priv->extractor) {
+		g_object_unref (priv->extractor);
+	}
+
 	g_object_unref (priv->storage);
 
 	g_main_loop_unref (priv->main_loop);



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