Skip to content

Commit bc3ee80

Browse files
author
black-sliver
committed
fix a stupid crash
1 parent d5f096a commit bc3ee80

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# PopTracker Changelog
22

3+
## v0.12.1
4+
5+
* Fixes
6+
* fix potential crash when changing packs/variants
7+
38
## v0.12.0
49

510
* App Features

src/poptracker.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,8 @@ void PopTracker::unloadTracker()
251251
#ifndef FIND_LUA_LEAKS // if we don't lua_close at exit, we can use valgrind to see if the allocated memory grew
252252
if (_L) lua_close(_L);
253253
#endif
254-
delete _tracker;
255254
delete _scriptHost;
255+
delete _tracker;
256256
delete _pack;
257257
_L = nullptr;
258258
_tracker = nullptr;

src/poptracker.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class PopTracker final : public App {
4747
virtual ~PopTracker();
4848

4949
static constexpr const char APPNAME[] = "PopTracker";
50-
static constexpr const char VERSION_STRING[] = "0.12.0";
50+
static constexpr const char VERSION_STRING[] = "0.12.1";
5151

5252
protected:
5353
virtual bool start();

0 commit comments

Comments
 (0)