OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b35cdac
)
core: Fix g_hash_table_destroy when running without -E
author
Johan Hedberg
<johan.hedberg@intel.com>
Fri, 21 Mar 2014 14:14:52 +0000
(16:14 +0200)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Fri, 21 Mar 2014 14:15:58 +0000
(16:15 +0200)
src/gatt-dbus.c
patch
|
blob
|
history
diff --git
a/src/gatt-dbus.c
b/src/gatt-dbus.c
index
275b263
..
6c4cdf7
100644
(file)
--- a/
src/gatt-dbus.c
+++ b/
src/gatt-dbus.c
@@
-341,6
+341,12
@@
gboolean gatt_dbus_manager_register(void)
void gatt_dbus_manager_unregister(void)
{
+ /* We might not have initialized if experimental features are
+ * not enabled.
+ */
+ if (!proxy_hash)
+ return;
+
g_hash_table_destroy(proxy_hash);
proxy_hash = NULL;