summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-01-18 08:21:07 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-01-18 08:21:07 +0100
commitd8fcc1ad5cb393165b934aa0fbabf17cc1dae021 (patch)
tree6366e873a00c21f16b1f0b032686ab39ba000790
parent42f0b3cc290244437d2c13e28c2334a06f626727 (diff)
opentrack: fix use-after-free (?)
-rw-r--r--variant/default/main-window.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/variant/default/main-window.cpp b/variant/default/main-window.cpp
index 4f2467c2..ad18babf 100644
--- a/variant/default/main-window.cpp
+++ b/variant/default/main-window.cpp
@@ -148,7 +148,7 @@ main_window::main_window() : State(OPENTRACK_BASE_PATH + OPENTRACK_LIBRARY_PATH)
for (list& type : types)
{
- list& t = type;
+ list t = type;
tie_setting(t.place, t.input,
[t](const QString& name) {
auto [ptr, idx] = module_by_name(name, t.libs);