summaryrefslogtreecommitdiff
path: root/gweb
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2012-10-16 17:19:25 +0300
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-10-16 18:10:11 +0300
commitd10e68006b3dc9d49df31738ffd896df30391431 (patch)
treecf7de729f5ceef2dccd0f3936b9baa442e60891c /gweb
parent9e9cf7a8800d634a5e04b0396f209cdefdb34e98 (diff)
downloadconnman-d10e68006b3dc9d49df31738ffd896df30391431.tar.gz
connman-d10e68006b3dc9d49df31738ffd896df30391431.tar.bz2
connman-d10e68006b3dc9d49df31738ffd896df30391431.zip
gresolv: Remove the lookup for real
The call to g_resolv_cancel_lookup() will do nothing because we just removed the lookup from the queue. The fix is to remove the lookup directly and not call the cancel function.
Diffstat (limited to 'gweb')
-rw-r--r--gweb/gresolv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gweb/gresolv.c b/gweb/gresolv.c
index fd4cf107..8ff86190 100644
--- a/gweb/gresolv.c
+++ b/gweb/gresolv.c
@@ -875,7 +875,7 @@ void g_resolv_unref(GResolv *resolv)
return;
while ((lookup = g_queue_pop_head(resolv->lookup_queue)))
- g_resolv_cancel_lookup(resolv, lookup->id);
+ destroy_lookup(lookup);
while ((query = g_queue_pop_head(resolv->query_queue)))
destroy_query(query);