From d8fcc1ad5cb393165b934aa0fbabf17cc1dae021 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 18 Jan 2019 08:21:07 +0100 Subject: opentrack: fix use-after-free (?) --- variant/default/main-window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'variant/default/main-window.cpp') 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); -- cgit v1.2.3