[Webkit-unassigned] [Bug 177315] New: [GLib] adoptGRef() should sink any floating reference
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Sep 21 11:48:43 PDT 2017
https://bugs.webkit.org/show_bug.cgi?id=177315
Bug ID: 177315
Summary: [GLib] adoptGRef() should sink any floating reference
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Platform
Assignee: webkit-unassigned at lists.webkit.org
Reporter: zan at falconsigh.net
CC: aperez at igalia.com, calvaris at igalia.com,
cgarcia at igalia.com, eocanha at igalia.com,
mcatanzaro at igalia.com
GRefPtr<> objects that are constructed from newly-created GObjects (or are adopting an existing reference) should do so exclusively through adoptGRef(), which would have to sink any floating reference. This would allow always using adoptGRef() to adopt-or-sink the GObject reference, instead of mixing the use of adoptGRef() with the GRefPtr<T>::GRefPtr(T*) constructor, depending on the floating nature of the given object that can be changed through API breaks.
--
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/20170921/ce076e41/attachment-0001.html>
More information about the webkit-unassigned
mailing list