[tracker/tracker-0.10] tracker-extract: Fix critical about locale in case of standalone mode



commit 9479bc5933dc316e2aafbf3c5f7e5b19ad3fa3b5
Author: Philip Van Hoof <philip codeminded be>
Date:   Mon Apr 18 16:50:58 2011 +0200

    tracker-extract: Fix critical about locale in case of standalone mode

 src/tracker-extract/tracker-main.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-extract/tracker-main.c b/src/tracker-extract/tracker-main.c
index e96624a..e115975 100644
--- a/src/tracker-extract/tracker-main.c
+++ b/src/tracker-extract/tracker-main.c
@@ -269,6 +269,7 @@ run_standalone (void)
 		verbosity = 3;
 	}
 
+	tracker_locale_init ();
 	tracker_albumart_init ();
 
 	/* This makes sure we don't steal all the system's resources */
@@ -282,7 +283,10 @@ run_standalone (void)
 	                              force_module);
 
 	if (!object) {
+		g_object_unref (file);
 		g_free (uri);
+		tracker_albumart_shutdown ();
+		tracker_locale_shutdown ();
 		return EXIT_FAILURE;
 	}
 
@@ -295,6 +299,7 @@ run_standalone (void)
 	g_free (uri);
 
 	tracker_albumart_shutdown ();
+	tracker_locale_shutdown ();
 
 	return EXIT_SUCCESS;
 }



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