From 5a9d437866b8da4b7247e1e06fef2a0e92807310 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 26 Apr 2013 08:08:12 +0300 Subject: CRUISE: Plug memory lek. CID 1003917 --- engines/cruise/dataLoader.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engines') diff --git a/engines/cruise/dataLoader.cpp b/engines/cruise/dataLoader.cpp index a53f675cc9..b2a319bb85 100644 --- a/engines/cruise/dataLoader.cpp +++ b/engines/cruise/dataLoader.cpp @@ -265,6 +265,8 @@ int loadFile(const char* name, int idx, int destIdx) { error("Unknown fileType in loadFile"); } + MemFree(ptr); + return -1; } -- cgit v1.2.3