Skip to content

Generated C Code references freed memory #2

@Isarhamster

Description

@Isarhamster

Wherever lv_style_t variables are used, you need to use static lv_style_t.
Reason is, that calling lv_style_init passes a pointer to memory that is expected to persist infinitely.
After leaving the lvgl_lv_-function, the style memory is freed but lvgl accesses the freed memory for painting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions