# HG changeset patch # User Sam Lantinga # Date 1297464126 28800 # Node ID 956d42855c921ea4bd7a97d3851e90194f91f10f # Parent bbdf9250ee8bbe8a5e1d9dfe44c356db3df2ae75 Finished removing unused leak detection code. diff -r bbdf9250ee8b -r 956d42855c92 src/SDL.c --- a/src/SDL.c Fri Feb 11 14:23:22 2011 -0800 +++ b/src/SDL.c Fri Feb 11 14:42:06 2011 -0800 @@ -29,10 +29,6 @@ #include "haptic/SDL_haptic_c.h" #include "joystick/SDL_joystick_c.h" -#if !SDL_VIDEO_DISABLED -#include "video/SDL_leaks.h" -#endif - /* Initialization/Cleanup routines */ #if !SDL_TIMERS_DISABLED extern void SDL_StartTicks(void); @@ -49,9 +45,6 @@ static Uint32 SDL_initialized = 0; static Uint32 ticks_started = 0; -#ifdef CHECK_LEAKS -int surfaces_allocated = 0; -#endif int SDL_InitSubSystem(Uint32 flags) @@ -220,15 +213,6 @@ #endif SDL_QuitSubSystem(SDL_INIT_EVERYTHING); -#ifdef CHECK_LEAKS - /* !!! FIXME: make this an assertion. */ - /* Print the number of surfaces not freed */ - if (surfaces_allocated != 0) { - fprintf(stderr, "SDL Warning: %d SDL surfaces extant\n", - surfaces_allocated); - } -#endif - /* Uninstall any parachute signal handlers */ SDL_UninstallParachute();