[tracker/tracker-0.10] tracker-miner-fs: Deinitialize correctly stuff when not getting the DBus name



commit 2bccf2fe6a8240603037534aed67cffa52260ab3
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Jun 3 14:05:12 2011 +0200

    tracker-miner-fs: Deinitialize correctly stuff when not getting the DBus name

 src/miners/fs/tracker-main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/miners/fs/tracker-main.c b/src/miners/fs/tracker-main.c
index dc271e6..af43848 100644
--- a/src/miners/fs/tracker-main.c
+++ b/src/miners/fs/tracker-main.c
@@ -761,7 +761,6 @@ main (gint argc, gchar *argv[])
 	if (!miner_applications) {
 		g_critical ("Couldn't create new Applications miner: '%s'",
 		            error ? error->message : "unknown error");
-		g_object_unref (miner_files_index);
 		g_object_unref (miner_files);
 		g_object_unref (config);
 		tracker_log_shutdown ();
@@ -771,6 +770,7 @@ main (gint argc, gchar *argv[])
 	/* Create new TrackerMinerFilesIndex object */
 	miner_files_index = tracker_miner_files_index_new (TRACKER_MINER_FILES (miner_files));
 	if (!miner_files_index) {
+		g_object_unref (miner_applications);
 		g_object_unref (miner_files);
 		g_object_unref (config);
 		tracker_log_shutdown ();



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