From aa065f1eb3c51593c121c22fbef793f5a666c016 Mon Sep 17 00:00:00 2001 From: ac_stef Date: Sat, 6 Sep 2008 16:46:11 +0000 Subject: [PATCH] fix sendmap without cfg file git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2494 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/worldio.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/src/worldio.cpp b/source/src/worldio.cpp index 6d2932be..0b440a06 100644 --- a/source/src/worldio.cpp +++ b/source/src/worldio.cpp @@ -167,6 +167,10 @@ uchar *readmcfggz(char *name, int *size, int *sizegz) } *sizegz = (int) gzbufsize; } + else + { + DELETEA(gzbuf); + } DELETEA(data); return gzbuf; }