projects
/
framework
/
connectivity
/
connman.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
technology: return already enabled when tethering is enabled
[framework/connectivity/connman.git]
/
src
/
proxy.c
diff --git
a/src/proxy.c
b/src/proxy.c
index
a83837b
..
fd58a70
100644
(file)
--- a/
src/proxy.c
+++ b/
src/proxy.c
@@
-2,7
+2,7
@@
*
* Connection Manager
*
*
* Connection Manager
*
- * Copyright (C) 2007-201
0
Intel Corporation. All rights reserved.
+ * Copyright (C) 2007-201
2
Intel Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
@@
-46,6
+46,7
@@
static void remove_lookup(struct proxy_lookup *lookup)
{
lookup_list = g_slist_remove(lookup_list, lookup);
{
lookup_list = g_slist_remove(lookup_list, lookup);
+ connman_service_unref(lookup->service);
g_free(lookup->url);
g_free(lookup);
}
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->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) {
lookup->watch = g_timeout_add_seconds(0, lookup_callback, lookup);
if (lookup->watch == 0) {