summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2013-03-26 16:20:38 +0100
committerXan Lopez <xan@igalia.com>2013-03-26 16:20:38 +0100
commit6666b3cd99a4931bd28b622918c121f92cf33b52 (patch)
tree5fc546f0026559b1262d3dfd461ba2c87956d5e2
parent71589c70b7af17b3f1dc10fbf4c1bf05588fb351 (diff)
downloadlibsoup-6666b3cd99a4931bd28b622918c121f92cf33b52.tar.gz
soup-session: fix memory leak
Do not steal the stream from the GTask, otherwise its destruction method will never run and it will be leaked. https://bugzilla.gnome.org/show_bug.cgi?id=696594
-rw-r--r--libsoup/soup-session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsoup/soup-session.c b/libsoup/soup-session.c
index 14e2be47..186d57ad 100644
--- a/libsoup/soup-session.c
+++ b/libsoup/soup-session.c
@@ -3899,7 +3899,7 @@ idle_return_from_cache_cb (gpointer data)
return FALSE;
}
- istream = g_object_steal_data (G_OBJECT (task), "SoupSession:istream");
+ istream = g_object_get_data (G_OBJECT (task), "SoupSession:istream");
async_return_from_cache (item, istream);
return FALSE;