From 6666b3cd99a4931bd28b622918c121f92cf33b52 Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Tue, 26 Mar 2013 16:20:38 +0100 Subject: 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 --- libsoup/soup-session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.1