diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-11-22 15:07:23 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-11-22 15:55:40 +0100 |
commit | bf5931532f91107747cc45befffb5cc189777c89 (patch) | |
tree | a1c5d99a971e04ad5a9e89f158941fcb711c7ff2 /opentrack/work.hpp | |
parent | a9860e951757bf454b83b13ce7eff865f0b6644e (diff) |
work: use the centralized keypress worker
Diffstat (limited to 'opentrack/work.hpp')
-rw-r--r-- | opentrack/work.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/opentrack/work.hpp b/opentrack/work.hpp index 5d1f6b54..e338e9f4 100644 --- a/opentrack/work.hpp +++ b/opentrack/work.hpp @@ -28,7 +28,7 @@ struct Work Work(main_settings& s, Mappings& m, SelectedLibraries& libs, QObject* recv, WId handle) : s(s), libs(libs), tracker(std::make_shared<Tracker>(s, m, libs)), - sc(std::make_shared<Shortcuts>(handle)), + sc(std::make_shared<Shortcuts>()), handle(handle) { #ifndef _WIN32 @@ -50,6 +50,7 @@ struct Work ~Work() { + sc = nullptr; // order matters, otherwise use-after-free -sh tracker = nullptr; libs = SelectedLibraries(); |