Removed unused leak detection code.

This commit is contained in:
Sam Lantinga 2011-02-11 14:23:22 -08:00
parent aef1c8834a
commit 5a0ad0fca0
7 changed files with 1 additions and 59 deletions

View file

@ -145,9 +145,6 @@ SDL_CreateRGBSurface(Uint32 flags,
/* The surface is ready to go */
surface->refcount = 1;
#ifdef CHECK_LEAKS
++surfaces_allocated;
#endif
return surface;
}
@ -931,9 +928,6 @@ SDL_FreeSurface(SDL_Surface * surface)
SDL_free(surface->pixels);
}
SDL_free(surface);
#ifdef CHECK_LEAKS
--surfaces_allocated;
#endif
}
/* vi: set ts=4 sw=4 expandtab: */