From 8da86418bfb1701cc39301e2e65b2549c69d7c77 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Tue, 30 Jan 2018 11:06:36 -0600 Subject: 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. --- engines/parallaction/parallaction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() { -- cgit v1.2.3