diff --git a/sc2/ChangeLog b/sc2/ChangeLog index 33e0c184a..b67bcaf3b 100644 --- a/sc2/ChangeLog +++ b/sc2/ChangeLog @@ -1,4 +1,5 @@ 0.2: +- Fixed memory leak in _ReleaseCelData, from PhracturedBlue. - Fixed mutex deadlock in 3do_blt.c, from tamlin - 'additional credits' amount for Melnorme correct now, by Windplume. - Spheres of influence now move correctly in starmap, from l0ci@hotmail.com diff --git a/sc2/src/sc2code/libs/graphics/sdl/3do_getbody.c b/sc2/src/sc2code/libs/graphics/sdl/3do_getbody.c index e5c926897..005dd5d8c 100644 --- a/sc2/src/sc2code/libs/graphics/sdl/3do_getbody.c +++ b/sc2/src/sc2code/libs/graphics/sdl/3do_getbody.c @@ -334,7 +334,7 @@ _ReleaseCelData (MEM_HANDLE handle) int cel_ct; FRAMEPTR FramePtr; - cel_ct = INDEX_GET (DrawablePtr->FlagsAndIndex); + cel_ct = INDEX_GET (DrawablePtr->FlagsAndIndex) + 1; FramePtr = &DrawablePtr->Frame[cel_ct]; while (--FramePtr, cel_ct--)