Skip to content

Double free in the first example #3

Description

@dreta-zz

Hey,

There's a XFree(screen); at the bottom of the first example. This can cause a segmentation fault when calling XCloseDisplay(display). Took me a few minutes to debug that. You aren't supposed to free the screen pointer, and since you don't do it in the other examples, i'm guessing this is just a leftover. Great tutorial, by the way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions