Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Finished removing unused leak detection code.
  • Loading branch information
slouken committed Feb 11, 2011
1 parent 0600c82 commit 9593c88
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/SDL.c
Expand Up @@ -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);
Expand All @@ -49,9 +45,6 @@ extern int SDL_HelperWindowDestroy(void);
static Uint32 SDL_initialized = 0;
static Uint32 ticks_started = 0;

#ifdef CHECK_LEAKS
int surfaces_allocated = 0;
#endif

int
SDL_InitSubSystem(Uint32 flags)
Expand Down Expand Up @@ -220,15 +213,6 @@ SDL_Quit(void)
#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();

Expand Down

0 comments on commit 9593c88

Please sign in to comment.