aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavilla <davilla@4pi.com>2011-12-03 20:17:28 -0500
committerdavilla <davilla@4pi.com>2011-12-03 20:17:28 -0500
commite835f45815ba5b75bbeb8f07f90334a39975ada4 (patch)
treea9d5d842d280a4741ba03a0e937211ddc0ac8ed0
parentc40a98ac7f1b4fbaafce76f875ba68e5d620b0de (diff)
[osx] fixed, autopool leaks, change from drain to release. Call SDL_Quit to shut it down... Duh
-rw-r--r--xbmc/osx/SDLMain.mm3
1 files changed, 2 insertions, 1 deletions
diff --git a/xbmc/osx/SDLMain.mm b/xbmc/osx/SDLMain.mm
index 98b3a92b50..f0d973caf6 100644
--- a/xbmc/osx/SDLMain.mm
+++ b/xbmc/osx/SDLMain.mm
@@ -611,10 +611,11 @@ int main(int argc, char *argv[])
// see http://lists.libsdl.org/pipermail/sdl-libsdl.org/2008-September/066542.html
int status;
status = SDL_main(gArgc, gArgv);
+ SDL_Quit();
[xbmc_delegate applicationWillTerminate:NULL];
[xbmc_delegate release];
- [pool drain];
+ [pool release];
return status;
}