diff options
author | Eugene Sandulenko | 2013-04-26 07:59:53 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2013-04-26 07:59:53 +0300 |
commit | eb3d556e15cfc463b1fd0a2edee3c2493bf7cded (patch) | |
tree | fc8d99b2f70fe25aa7f5cac14089941dedc4edb2 | |
parent | ff132ee2d45f3a73a8fc5716686598e61fdf07e1 (diff) | |
download | scummvm-rg350-eb3d556e15cfc463b1fd0a2edee3c2493bf7cded.tar.gz scummvm-rg350-eb3d556e15cfc463b1fd0a2edee3c2493bf7cded.tar.bz2 scummvm-rg350-eb3d556e15cfc463b1fd0a2edee3c2493bf7cded.zip |
CGE: Plug memory leak. CID 1003914
-rw-r--r-- | engines/cge/snail.cpp | 2 |
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; |