projects
/
platform
/
core
/
connectivity
/
bluetooth-frwk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f26e8c
)
Add shared connection unref logic
01/244001/1
author
Wootak Jung
<wootak.jung@samsung.com>
Mon, 14 Sep 2020 02:09:03 +0000
(11:09 +0900)
committer
Wootak Jung
<wootak.jung@samsung.com>
Mon, 14 Sep 2020 02:09:03 +0000
(11:09 +0900)
g_object_unref is required not only private conn but also shared conn
Change-Id: I504b3408158fc99aca36c4b9f08caed150949f48
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
bt-api/bt-common.c
patch
|
blob
|
history
diff --git
a/bt-api/bt-common.c
b/bt-api/bt-common.c
index e18096086cb8dbeb791c498834f070ded7d73ca8..2dd27000a77523fcf63d8f96bb041f9d433e8a95 100644
(file)
--- a/
bt-api/bt-common.c
+++ b/
bt-api/bt-common.c
@@
-2563,5
+2563,10
@@
BT_EXPORT_API int bluetooth_unregister_callback(void)
profile_gproxy = NULL;
}
+ if (system_common_conn) {
+ g_object_unref(system_common_conn);
+ system_common_conn = NULL;
+ }
+
return BLUETOOTH_ERROR_NONE;
}