[tracker] tracker-extract: Fix critical about locale in case of standalone mode
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tracker-extract: Fix critical about locale in case of standalone mode
- Date: Mon, 18 Apr 2011 14:51:27 +0000 (UTC)
commit cdeb9a56090f2e50cde2b28ae528ed2f59f7e81d
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]