Skip to content

Add Browser.Free() method for freeing CEF references, as "del browser" is not guaranteed to do so #492

Open
@cztomczak

Description

@cztomczak

The del browser statement only removes a reference to the object and does not guarantee that object is destroyed. Thus PyBrowser.cefBrowser C++ object reference is not freed.

Add also Frame.Free() and maybe for other objects as well.

Check __dealloc__ methods if freeing resources there should be done in the Free method instead.

Related: upstream Issue #2593: Improvements for debugging CefRefPtr lifespan issues.

Update documentation and examples.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions