fix: Crash when loading a provider after evaluating patterns
This commit is contained in:
parent
e3f88395ec
commit
dd9b6643e6
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user