aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2013-04-26 07:59:53 +0300
committerEugene Sandulenko2013-04-26 07:59:53 +0300
commiteb3d556e15cfc463b1fd0a2edee3c2493bf7cded (patch)
treefc8d99b2f70fe25aa7f5cac14089941dedc4edb2 /engines
parentff132ee2d45f3a73a8fc5716686598e61fdf07e1 (diff)
downloadscummvm-rg350-eb3d556e15cfc463b1fd0a2edee3c2493bf7cded.tar.gz
scummvm-rg350-eb3d556e15cfc463b1fd0a2edee3c2493bf7cded.tar.bz2
scummvm-rg350-eb3d556e15cfc463b1fd0a2edee3c2493bf7cded.zip
CGE: Plug memory leak. CID 1003914
Diffstat (limited to 'engines')
-rw-r--r--engines/cge/snail.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/cge/snail.cpp b/engines/cge/snail.cpp
index 4cd95a888e..edb8972040 100644
--- a/engines/cge/snail.cpp
+++ b/engines/cge/snail.cpp
@@ -1199,6 +1199,8 @@ void CGEEngine::snFlash(bool on) {
}
_vga->setColors(pal, 64);
}
+
+ free(pal);
} else
_vga->setColors(_vga->_sysPal, 64);
_dark = false;