From 06eb064ec911e1129131dbf372423f9338e53b28 Mon Sep 17 00:00:00 2001 From: iobyte Date: Tue, 2 Jun 2020 23:36:56 +0000 Subject: [PATCH] fix linux crash at program exit git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@7124 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: a6d306decd74a60d0bafd6823cf8869ab83f3023 Former-commit-id: 2fee85968ef68bce704ebc82db437e78a5aacd25 --- src/libs/tgf/module.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libs/tgf/module.cpp b/src/libs/tgf/module.cpp index 708c7e13f..162b4e3f8 100644 --- a/src/libs/tgf/module.cpp +++ b/src/libs/tgf/module.cpp @@ -84,7 +84,8 @@ GfModule::GfModule(const std::string& strShLibName, void* hShLibHandle) GfModule::~GfModule() { - _mapModulesByLibName.clear(); // Avoid memory leaks + // this actually causes memory leaks + //_mapModulesByLibName.clear(); // Avoid memory leaks } GfModule* GfModule::load(const std::string& strShLibName)