diff options
author | Colin Snover | 2018-01-30 11:06:36 -0600 |
---|---|---|
committer | D G Turner | 2018-08-01 16:44:51 +0100 |
commit | 8da86418bfb1701cc39301e2e65b2549c69d7c77 (patch) | |
tree | be48d6cd4a0dd99cf9a4775c8b10b934e8083185 /engines/parallaction/parallaction.cpp | |
parent | 69df2e2d0e8a7254da1000c4b2b6cec2edd0b102 (diff) | |
download | scummvm-rg350-8da86418bfb1701cc39301e2e65b2549c69d7c77.tar.gz scummvm-rg350-8da86418bfb1701cc39301e2e65b2549c69d7c77.tar.bz2 scummvm-rg350-8da86418bfb1701cc39301e2e65b2549c69d7c77.zip |
PARALLACTION: Fix use-after-free on quit
Parallaction::_gfx is referenced by objects destroyed when
Parallaction::_input is destroyed so it cannot be destroyed first.
Diffstat (limited to 'engines/parallaction/parallaction.cpp')
-rw-r--r-- | engines/parallaction/parallaction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/parallaction/parallaction.cpp b/engines/parallaction/parallaction.cpp index bbe759dffe..9bf54919ec 100644 --- a/engines/parallaction/parallaction.cpp +++ b/engines/parallaction/parallaction.cpp @@ -108,10 +108,10 @@ Parallaction::~Parallaction() { delete _localFlagNames; _char._ani.reset(); + delete _input; delete _gfx; delete _soundMan; delete _disk; - delete _input; } Common::Error Parallaction::init() { |