gresolv: Remove the lookup for real
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Tue, 16 Oct 2012 14:19:25 +0000 (17:19 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Tue, 16 Oct 2012 15:10:11 +0000 (18:10 +0300)
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

index fd4cf10..8ff8619 100644 (file)
@@ -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);