mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-28 21:33:53 +01:00
Prevent memory leak(s) from QuizChecker. (#2656)
This commit is contained in:
parent
3ceaaa9bb4
commit
8cd87ad148
2 changed files with 11 additions and 13 deletions
|
|
@ -506,6 +506,7 @@ public class MainActivity extends AuthenticatedActivity implements FragmentManag
|
|||
|
||||
@Override
|
||||
protected void onDestroy() {
|
||||
quizChecker.cleanup();
|
||||
locationManager.unregisterLocationManager();
|
||||
// Remove ourself from hashmap to prevent memory leaks
|
||||
locationManager = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue