Skip to content

[Question] why do we need to FT_Done_Library in impl Drop for Glyph and impl Drop for Face #251

@lulitao1997

Description

@lulitao1997

doesn't it causes double free in the real program?
e.g.
i have a function to get some info from a glyph

fn get_glyph_info(face: Face) {
        let glyph = face.glyph().get_glyph().unwrap();
        // do some calculation on glyph
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions