[Webkit-unassigned] [Bug 195206] [GLib] Returning G_TYPE_OBJECT from a constructor does not work

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 1 09:20:04 PST 2019


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

--- Comment #6 from Adrian Perez <aperez at igalia.com> ---
(In reply to Carlos Garcia Campos from comment #5)
> g_autoptr(JSCClass) klass = jsc_context_register_class 
> 
> That's the bug, you are freeing the JSCClass which is owned by the context.

/me facepalms

You are right, and the API documentation definitely has the function
annotated “transfer none”. I removed the g_autoptr() and all works
like a charm now.

Informal r+ to the patch!

-- 
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/20190301/4fe995b4/attachment.html>


More information about the webkit-unassigned mailing list