diff --git a/hch/CCreatureHandler.cpp b/hch/CCreatureHandler.cpp index 97b8a307c..a6ff1595e 100644 --- a/hch/CCreatureHandler.cpp +++ b/hch/CCreatureHandler.cpp @@ -782,7 +782,7 @@ int CCreatureAnimation::nextFrame(SDL_Surface *dest, int x, int y) FTemp+='\0'; } } - delete RLEntries; + delete [] RLEntries; RLEntries = NULL; if (BottomMargin>0) { diff --git a/hch/CDefHandler.cpp b/hch/CDefHandler.cpp index 8f2479700..0ee2ff4ad 100644 Binary files a/hch/CDefHandler.cpp and b/hch/CDefHandler.cpp differ diff --git a/hch/CLodHandler.cpp b/hch/CLodHandler.cpp index f45aa50c3..797fb0975 100644 --- a/hch/CLodHandler.cpp +++ b/hch/CLodHandler.cpp @@ -289,6 +289,7 @@ SDL_Surface * CLodHandler::loadBitmap(std::string fname) { std::cout<<"an error "< CLodHandler::extractManyFiles(std::vectoropenFromMemory(decomp, entries[i].realSize, std::string((char*)entries[i].name)); nh->alphaTransformed = false; + delete [] decomp; ret[curDef] = nh; } delete[] outp;