From 1a4580d83fb87719b699e0919bafb581203f80ee Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 12 Dec 2016 20:05:14 +0100 Subject: FULLPIPE: Plug several memory leaks --- engines/fullpipe/fullpipe.cpp | 3 +++ engines/fullpipe/gfx.cpp | 2 ++ 2 files changed, 5 insertions(+) (limited to 'engines/fullpipe') diff --git a/engines/fullpipe/fullpipe.cpp b/engines/fullpipe/fullpipe.cpp index 10c1744dd9..41a4251fe9 100644 --- a/engines/fullpipe/fullpipe.cpp +++ b/engines/fullpipe/fullpipe.cpp @@ -214,6 +214,9 @@ FullpipeEngine::~FullpipeEngine() { delete _soundStream2; delete _soundStream3; delete _soundStream4; + delete _floaters; + delete _aniHandler; + delete _behaviorManager; } void FullpipeEngine::initialize() { diff --git a/engines/fullpipe/gfx.cpp b/engines/fullpipe/gfx.cpp index 4dec4b640c..573de78b98 100644 --- a/engines/fullpipe/gfx.cpp +++ b/engines/fullpipe/gfx.cpp @@ -55,6 +55,8 @@ Background::~Background() { } free(_bigPictureArray); + + free(_bgname); } bool Background::load(MfcArchive &file) { -- cgit v1.2.3