Skip to content
Browse files

[droid] only unload libs when CApp dies for Android

This is a stop-gap that obviously doesn't solve the problem. We can hash it
out once Android hits master.
  • Loading branch information...
1 parent 297f16e commit 8af4e9d36d9fcc5fdc17c13e03508689808a8d63 Cory Fields committed Aug 6, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 xbmc/Application.cpp
View
4 xbmc/Application.cpp
@@ -3509,8 +3509,10 @@ bool CApplication::Cleanup()
#ifdef _LINUX
CXHandle::DumpObjectTracker();
#endif
+#if defined(TARGET_ANDROID)
+ // enable for all platforms once it's safe
g_sectionLoader.UnloadAll();
-
+#endif
#ifdef _CRTDBG_MAP_ALLOC
_CrtDumpMemoryLeaks();
while(1); // execution ends

0 comments on commit 8af4e9d

Please sign in to comment.
Something went wrong with that request. Please try again.