1
0
mirror of synced 2025-01-29 19:17:28 +01:00

Fixed multiple memory leaks

This commit is contained in:
WerWolv 2021-02-01 20:07:57 +01:00
parent d69eee55dd
commit 83bbde8d29
3 changed files with 4 additions and 1 deletions

View File

@ -127,6 +127,7 @@ struct MemoryEditor
// State/Internals
ContentsWidthChanged = false;
DataPreviewAddr = DataEditingAddr = DataPreviewAddrEnd = (size_t)-1;
DataPreviewAddrOld = DataPreviewAddrEndOld = (size_t)-1;
DataEditingTakeFocus = false;
memset(DataInputBuf, 0, sizeof(DataInputBuf));
memset(AddrInputBuf, 0, sizeof(AddrInputBuf));

View File

@ -18,7 +18,7 @@ namespace hex {
}
Plugin::~Plugin() {
dlclose(this->m_handle);
}
void Plugin::initializePlugin() const {

View File

@ -193,6 +193,8 @@ namespace hex {
}
ViewPattern::~ViewPattern() {
delete this->m_patternLanguageRuntime;
View::unsubscribeEvent(Events::ProjectFileStore);
View::unsubscribeEvent(Events::ProjectFileLoad);
}