diff options
author | Xan Lopez <xan@igalia.com> | 2013-03-26 16:20:38 +0100 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2013-03-26 16:20:38 +0100 |
commit | 6666b3cd99a4931bd28b622918c121f92cf33b52 (patch) | |
tree | 5fc546f0026559b1262d3dfd461ba2c87956d5e2 | |
parent | 71589c70b7af17b3f1dc10fbf4c1bf05588fb351 (diff) | |
download | libsoup-6666b3cd99a4931bd28b622918c121f92cf33b52.tar.gz libsoup-6666b3cd99a4931bd28b622918c121f92cf33b52.tar.bz2 libsoup-6666b3cd99a4931bd28b622918c121f92cf33b52.zip |
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.c | 2 |
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; |