projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
282188d
)
proxy: Service was saved but not referenced
author
Jukka Rissanen
<jukka.rissanen@linux.intel.com>
Wed, 18 Jan 2012 14:46:37 +0000
(16:46 +0200)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Fri, 20 Jan 2012 00:42:08 +0000
(
01:42
+0100)
src/proxy.c
patch
|
blob
|
history
diff --git
a/src/proxy.c
b/src/proxy.c
index
a83837b
..
d88e33d
100644
(file)
--- a/
src/proxy.c
+++ b/
src/proxy.c
@@
-46,6
+46,7
@@
static void remove_lookup(struct proxy_lookup *lookup)
{
lookup_list = g_slist_remove(lookup_list, lookup);
+ connman_service_unref(lookup->service);
g_free(lookup->url);
g_free(lookup);
}
@@
-117,7
+118,7
@@
unsigned int connman_proxy_lookup(const char *interface, const char *url,
lookup->cb = cb;
lookup->user_data = user_data;
lookup->url = g_strdup(url);
- lookup->service =
service
;
+ lookup->service =
connman_service_ref(service)
;
lookup->watch = g_timeout_add_seconds(0, lookup_callback, lookup);
if (lookup->watch == 0) {