diff --git a/src/gdxviewer/gdxviewerstate.cpp b/src/gdxviewer/gdxviewerstate.cpp index c10c6a365..525c3f81d 100644 --- a/src/gdxviewer/gdxviewerstate.cpp +++ b/src/gdxviewer/gdxviewerstate.cpp @@ -33,6 +33,7 @@ GdxViewerState::GdxViewerState() GdxViewerState::~GdxViewerState() { for (auto it = mSymbolViewState.begin() ; it != mSymbolViewState.end() ; ) { + delete it.value(); it = mSymbolViewState.erase(it); } }