Skip to content

Closing tabs in debug mode #21

@hojjatjafary

Description

@hojjatjafary

Hi,
Seems closing tabs causes runtime assertion of an invalid iterator here :

assert((funcIter != mOpenFunctions.end() || strIter != mOpenStructs.end()) &&

The item is erased from std::map so the iterator will be invalid but you are trying to compare the iterator with the end of map, it is better to put the assertion before erasing the items.

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