[libsoup] soup-session: fix memory leak
- From: Xan Lopez <xan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] soup-session: fix memory leak
- Date: Tue, 26 Mar 2013 16:16:35 +0000 (UTC)
commit 6666b3cd99a4931bd28b622918c121f92cf33b52
Author: Xan Lopez <xan igalia com>
Date: Tue Mar 26 16:20:38 2013 +0100
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libsoup/soup-session.c b/libsoup/soup-session.c
index 14e2be4..186d57a 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]