Skip to content

Commit

Permalink
fix a stupid crash
Browse files Browse the repository at this point in the history
  • Loading branch information
black-sliver committed Apr 19, 2021
1 parent d5f096a commit bc3ee80
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# PopTracker Changelog

## v0.12.1

* Fixes
* fix potential crash when changing packs/variants

## v0.12.0

* App Features
Expand Down
2 changes: 1 addition & 1 deletion src/poptracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/poptracker.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit bc3ee80

Please sign in to comment.