[Webkit-unassigned] [Bug 83752] [GTK] Use GRefPtr to delete the default web context in WebKit2 GTK+
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Apr 13 08:08:04 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=83752
--- Comment #7 from Martin Robinson <mrobinson at webkit.org> 2012-04-13 08:08:04 PST ---
(In reply to comment #4)
> (In reply to comment #3)
> > (From update of attachment 136839 [details] [details])
> > It might be cleaner to use GRefPtr and DECLARE_STATIC_LOCAL
>
> That doesn't help, we want to make sure finalize is called before the process finishes. Static variables declared with DEFINE_STATIC_LOCAL are leaked, the destructor of the GRefPtr is not called at exit.
>From what I understand the point of DEFINE_STATIC_LOCAL is to work around a compiler bug to ensure that the variables contained are cleaned up at exit. If that's not happening it seems like a bug in DEFINE_STATIC_LOCAL. So GRefPtr may work here, but perhaps not for all compilers.
--
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