[Webkit-unassigned] [Bug 127474] [GTK] Loading page into WebView shows g_closure_unref warning

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Feb 15 23:29:31 PST 2015


--- Comment #9 from Carlos Garcia Campos <cgarcia at igalia.com> ---
(In reply to comment #8)
> (In reply to comment #7)
> > Do we have a simple test case or any other way to reproduce this? If we
> > could add at least a unit test it would be perfect.
> I didn't try it, but I suppose this is related to GTK+ widgets/plugins,
> which Evolution uses, thus a dead end in case of WebKit2.
> > As Anders suggests, you could do something like RefPtr<GObjectEventListener>
> > protect(this); instead of calling ref/deref.
> This is a mater of taste. I do not like to rely on compiler optimizations of
> an auto_pointer-like classes and their freeing in the right time, thus
> calling ref/defer "directly" ensures that the call is done always in the
> right time, instead of in the time when the compiler decides it's the best
> time for it.

WebKit uses RefPtr everywhere and the implicit ref/deref is the preferred way.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150216/da865a24/attachment-0002.html>

More information about the webkit-unassigned mailing list