Skip to content

UIInspector accesses freed memory #183

@greg7mdp

Description

@greg7mdp

If you enable UI_DEBUG, there is a nice inspector showing info on the window hierarchy.

When opening a popup menu and moving the mouse into it, _UIInspectorSetFocusedWindow is called making the popup menu the inspector focus window.

When clicking on a menu item, the event processing in _UIWindowInputEvent calls the menuitem callback, the popup menu is destroyed, and ends up calling _UIUpdate(), which refreshes all the toplevels, including the inspector window which ends up calling _UIInspectorTableMessage which tries to access element->cClassName, where element is the destroyed popup menu window I believe.

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