diff options
author | Jukka Rissanen <jukka.rissanen@linux.intel.com> | 2012-01-18 16:46:37 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-01-20 01:42:08 +0100 |
commit | 28cfb9f31a6ef26df6917a9aa4f3c3eb676a5bc9 (patch) | |
tree | 73da35390d3fc6bb5254c9424b6ce21869c00f21 /src | |
parent | 282188d62b9f81f1a46fd6b3341f1992f02b29a5 (diff) | |
download | connman-28cfb9f31a6ef26df6917a9aa4f3c3eb676a5bc9.tar.gz connman-28cfb9f31a6ef26df6917a9aa4f3c3eb676a5bc9.tar.bz2 connman-28cfb9f31a6ef26df6917a9aa4f3c3eb676a5bc9.zip |
proxy: Service was saved but not referenced
Diffstat (limited to 'src')
-rw-r--r-- | src/proxy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/proxy.c b/src/proxy.c index a83837ba..d88e33d3 100644 --- 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) { |