projects
/
platform
/
upstream
/
libsoup.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71589c7
)
soup-session: fix memory leak
author
Xan Lopez
<xan@igalia.com>
Tue, 26 Mar 2013 15:20:38 +0000
(16:20 +0100)
committer
Xan Lopez
<xan@igalia.com>
Tue, 26 Mar 2013 15:20:38 +0000
(16:20 +0100)
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
patch
|
blob
|
history
diff --git
a/libsoup/soup-session.c
b/libsoup/soup-session.c
index
14e2be4
..
186d57a
100644
(file)
--- 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;