From 97160608f1c3cbfc7944ad77b5926aa5ee796077 Mon Sep 17 00:00:00 2001
From: vrishab <vrishab.in@gmail.com>
Date: Wed, 16 Jul 2014 10:35:45 +0000
Subject: [PATCH] net: Fix invalid free

https://bugzilla.gnome.org/show_bug.cgi?id=733232

Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
---
 libs/net/grl-net-wc.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/libs/net/grl-net-wc.c b/libs/net/grl-net-wc.c
index a126d63..9977689 100644
--- a/libs/net/grl-net-wc.c
+++ b/libs/net/grl-net-wc.c
@@ -1128,10 +1128,8 @@ grl_net_wc_flush_delayed_requests (GrlNetWc *self)
   g_return_if_fail (GRL_IS_NET_WC (self));
 
   while ((c = g_queue_pop_head (priv->pending))) {
+    g_clear_object (&c->cancellable);
     g_source_remove (c->source_id);
-    g_object_unref (c->cancellable);
-    g_free (c->url);
-    g_free (c);
   }
 
   g_get_current_time (&priv->last_request);
-- 
2.0.1