[Webkit-unassigned] [Bug 28148] Requests through the SOUP layer leaks memory

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Sep 11 06:34:48 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=28148





--- Comment #22 from John Kjellberg <john.kjellberg at power.alstom.com>  2009-09-11 06:34:47 PDT ---
I now have more information about this bug. The reason that the hack patch
removed the leak was that it would then create two different "SoupSession"
objects. And the one used by the "startHttp()" didn't have the "sniffer"
functionality!

What I did was to revert back to the un-patched code. Then in the file
WebKit/gtk/webkit/webkitprivate.cpp I commented out the last lines in that
source:
 //SoupSessionFeature* sniffer =
static_cast<SoupSessionFeature*>(g_object_new(SOUP_TYPE_CONTENT_S    NIFFER,
NULL));
//soup_session_add_feature(session, sniffer);
//g_object_unref(sniffer);

and the leak was gone!

Is this a bug or some kind or feature that I don't understand? Could it be
fixed with some configuration? I will continue to research is, but I would love
to get a comment from someone that knows about "sniffer".

Thanks

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list