[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
Fri Jun 22 21:58:04 PDT 2012


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





--- Comment #4 from mike at afflixion.com  2012-06-22 21:58:03 PST ---
This is a nasty problem. My application tends to reload a page over and over. So, after reloading the page five times, a single fired signal would call the Javascript slot function five times, four of which with defunct Javascript contexts. It just so happened that my slot functions sometimes were used to create Flash objects which would crash the application when it was attempted in a bogus Javascript context.

I eventually worked around it by disconnecting all slots from the signals on the application side (you can't do it from the Javascript side because as far as Javascript is concerned the signal has no connection) and reconnecting them during each page load as you normally would.

-- 
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