From d10e68006b3dc9d49df31738ffd896df30391431 Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Tue, 16 Oct 2012 17:19:25 +0300 Subject: [PATCH] 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. --- gweb/gresolv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gweb/gresolv.c b/gweb/gresolv.c index fd4cf10..8ff8619 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); -- 2.7.4