Skip to content

libdom: unref nodes and strings #80

@krichprollsch

Description

@krichprollsch

netsurf/libdom uses a ref counter to track node and string usage an cleanup memory once the ref count reach 0.

see:

We have to ensure our usages of strings and nodes unref correctly once they are done.

To help detect string leak, we can USS a leak detector the same way netsurf does in its example: https://github.com/Browsercore/libdom/blob/master/examples/dom-structure-dump.c#L372

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions