mirror of https://github.com/WerWolv/ImHex.git
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();
|
this->m_sortedPatterns[ImHexApi::Provider::get()].clear();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
EventManager::subscribe<EventProviderClosed>([this](auto *provider) {
|
||||||
|
this->m_sortedPatterns[provider].clear();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
ViewPatternData::~ViewPatternData() {
|
ViewPatternData::~ViewPatternData() {
|
||||||
|
|
Loading…
Reference in New Issue