[Webkit-unassigned] [Bug 45550] New: [GTK] Placement new / manual destructor invocation should be used on private GObject memory

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Sep 10 10:31:52 PDT 2010


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

           Summary: [GTK] Placement new / manual destructor invocation
                    should be used on private GObject memory
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: Gtk
          Severity: Normal
          Priority: P3
         Component: WebKit Gtk
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: mrobinson at webkit.org


GLib allocates and deallocates GObject private data structs itself. When those structs contain C++ members, their constructors and destructors are not called. This is not only dangerous, it makes RefPtr-type smart pointers much less useful. We can fix this problem by calling placement new on the private data struct during instance initialization and calling the destructor during finalization.

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