Removed unused leak detection code.
This commit is contained in:
parent
aef1c8834a
commit
5a0ad0fca0
7 changed files with 1 additions and 59 deletions
|
@ -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: */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue