aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorMax Horn2004-06-27 13:24:15 +0000
committerMax Horn2004-06-27 13:24:15 +0000
commitf8cc10321e385dcd06cb130d683ae020445ab739 (patch)
treed29d132e038e406e92337707985400e7376adcec /scumm
parent907f2dbf192afdfd9fee2984a2fca8254be1ccd2 (diff)
downloadscummvm-rg350-f8cc10321e385dcd06cb130d683ae020445ab739.tar.gz
scummvm-rg350-f8cc10321e385dcd06cb130d683ae020445ab739.tar.bz2
scummvm-rg350-f8cc10321e385dcd06cb130d683ae020445ab739.zip
Fix memory leak
svn-id: r14080
Diffstat (limited to 'scumm')
-rw-r--r--scumm/resource_v7he.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scumm/resource_v7he.cpp b/scumm/resource_v7he.cpp
index 53abdb3f60..477c8ee248 100644
--- a/scumm/resource_v7he.cpp
+++ b/scumm/resource_v7he.cpp
@@ -68,6 +68,7 @@ void Win32ResExtractor::setCursor(int id) {
_vm->setCursorHotspot(hotspot_x, hotspot_y);
_vm->grabCursorFromBuffer(cursor, w, h);
+ free(cursor);
}
int Win32ResExtractor::extractResource(const char *resType, char *resName, byte **data) {