diff --git a/DevTools/UserspaceEmulator/main.cpp b/DevTools/UserspaceEmulator/main.cpp index e88b5d77f9..85b53753a0 100644 --- a/DevTools/UserspaceEmulator/main.cpp +++ b/DevTools/UserspaceEmulator/main.cpp @@ -68,7 +68,8 @@ int main(int argc, char** argv, char** env) environment.append(env[i]); } - UserspaceEmulator::Emulator emulator(arguments, environment, move(elf)); + // FIXME: It might be nice to tear down the emulator properly. + auto& emulator = *new UserspaceEmulator::Emulator(arguments, environment, move(elf)); if (!emulator.load_elf()) return 1;