From bc3ee804d7893e6b38dec8cab0e541afdf338261 Mon Sep 17 00:00:00 2001 From: black-sliver <> Date: Mon, 19 Apr 2021 19:32:03 +0200 Subject: [PATCH] fix a stupid crash --- CHANGELOG.md | 5 +++++ src/poptracker.cpp | 2 +- src/poptracker.h | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index be876845..c7128c71 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # PopTracker Changelog +## v0.12.1 + +* Fixes + * fix potential crash when changing packs/variants + ## v0.12.0 * App Features diff --git a/src/poptracker.cpp b/src/poptracker.cpp index e8d7414e..9e7ada5a 100644 --- a/src/poptracker.cpp +++ b/src/poptracker.cpp @@ -251,8 +251,8 @@ void PopTracker::unloadTracker() #ifndef FIND_LUA_LEAKS // if we don't lua_close at exit, we can use valgrind to see if the allocated memory grew if (_L) lua_close(_L); #endif - delete _tracker; delete _scriptHost; + delete _tracker; delete _pack; _L = nullptr; _tracker = nullptr; diff --git a/src/poptracker.h b/src/poptracker.h index 085b6cda..c127a4c9 100644 --- a/src/poptracker.h +++ b/src/poptracker.h @@ -47,7 +47,7 @@ class PopTracker final : public App { virtual ~PopTracker(); static constexpr const char APPNAME[] = "PopTracker"; - static constexpr const char VERSION_STRING[] = "0.12.0"; + static constexpr const char VERSION_STRING[] = "0.12.1"; protected: virtual bool start();