[tracker/tracker-0.12] 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.12] libtracker-common: Fix crash in gconf-dbus locale handling
- Date: Fri, 25 Nov 2011 15:44:46 +0000 (UTC)
commit 93739778a3a0f101b6f8420c73b4eb16ee0ccd3f
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]