[Webkit-unassigned] [Bug 75984] QWebView leaks memory when QObject signal is connected to javascript slot

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 7 20:04:01 PST 2012


Rusty <GICodeWarrior at gmail.com> changed:

           What    |Removed                     |Added
                 CC|                            |GICodeWarrior at gmail.com

--- Comment #2 from Rusty <GICodeWarrior at gmail.com>  2012-03-07 20:04:01 PST ---
In Qt 4.8, the situation is even worse.  I modified your example to emit thing_happened when the page loads.  Each time you click the link, the number of alerts that pop up is increased by one.  Specifically, the first time it loads you get one alert.  The second time it loads you get two alerts!

This means that the signals aren't being detached and are keeping the old JavaScript contexts around.  Each time the signal is emitted, every old context receives the signal in addition to the current context.

I verified the leak is present in 4.6 (Ubuntu Lucid build) and 4.7 (custom build).  The above amplification of signals adds to the problem in 4.8.

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