[tracker/checkpoint] libtracker-data: Don't leak string when locale is unknown
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/checkpoint] libtracker-data: Don't leak string when locale is unknown
- Date: Wed, 29 Jun 2011 15:38:33 +0000 (UTC)
commit 24ccce887ad71eb3c7edce4eefef5f4bff27c2dd
Author: Martyn Russell <martyn lanedo com>
Date: Wed Jun 29 16:37:43 2011 +0100
libtracker-data: Don't leak string when locale is unknown
src/libtracker-data/tracker-db-manager.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-data/tracker-db-manager.c b/src/libtracker-data/tracker-db-manager.c
index 22964ba..c76e934 100644
--- a/src/libtracker-data/tracker-db-manager.c
+++ b/src/libtracker-data/tracker-db-manager.c
@@ -613,7 +613,7 @@ db_get_locale (void)
} else {
/* expected when restoring from backup, always recreate indices */
g_message (" Could not find database locale file:'%s'", filename);
- return g_strdup ("unknown");
+ locale = g_strdup ("unknown");
}
g_free (filename);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]