1
0
mirror of synced 2024-11-24 15:50:16 +01:00

fix: Crash when loading a provider after evaluating patterns

This commit is contained in:
WerWolv 2022-10-12 14:50:09 +02:00
parent e3f88395ec
commit dd9b6643e6

View File

@ -15,6 +15,10 @@ namespace hex::plugin::builtin {
this->m_sortedPatterns[ImHexApi::Provider::get()].clear();
});
EventManager::subscribe<EventProviderClosed>([this](auto *provider) {
this->m_sortedPatterns[provider].clear();
});
}
ViewPatternData::~ViewPatternData() {