From c1ce0e1eceb12ecac8ec0f8bdb247e5b6d44a126 Mon Sep 17 00:00:00 2001 From: James Brown Date: Sat, 18 Jan 2003 16:02:25 +0000 Subject: Init and cleanup compression tables svn-id: r6500 --- scumm/bundle.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scumm/bundle.cpp b/scumm/bundle.cpp index 3723f6309f..f35a78485f 100644 --- a/scumm/bundle.cpp +++ b/scumm/bundle.cpp @@ -94,10 +94,17 @@ Bundle::Bundle() { _lastSong = -1; _initializedImcTables = false; + + _bundleVoiceTable = NULL; + _bundleMusicTable = NULL; } Bundle::~Bundle() { + if (_bundleVoiceTable) + free(_bundleVoiceTable); + if (_bundleMusicTable) + free(_bundleMusicTable); } void Bundle::initializeImcTables() -- cgit v1.2.3