[tracker/tracker-0.10] libtracker-common: Fix crash in gconf-dbus locale handling
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.10] libtracker-common: Fix crash in gconf-dbus locale handling
- Date: Tue, 8 Nov 2011 15:07:11 +0000 (UTC)
commit 59d8202e05fc5485f5a269ce80bc080b2a1f213e
Author: JÃrg Billeter <j bitron ch>
Date: Tue Nov 8 14:50:52 2011 +0100
libtracker-common: Fix crash in gconf-dbus locale handling
Fixes NB#289635.
src/libtracker-common/tracker-locale-gconfdbus.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-common/tracker-locale-gconfdbus.c b/src/libtracker-common/tracker-locale-gconfdbus.c
index 6cfe19a..3e93bbe 100644
--- a/src/libtracker-common/tracker-locale-gconfdbus.c
+++ b/src/libtracker-common/tracker-locale-gconfdbus.c
@@ -93,6 +93,11 @@ add_notify (void)
GVariant *reply;
GError *error = NULL;
+ if (gconf_dbus_default_db == NULL || connection == NULL) {
+ /* shutdown has already been called */
+ return FALSE;
+ }
+
reply = g_dbus_connection_call_sync (connection,
GCONF_DBUS_SERVICE,
gconf_dbus_default_db,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]