Prevent memory leak(s) from QuizChecker. (#2656)

This commit is contained in:
Dmitry Brant 2019-03-19 06:36:14 -04:00 committed by Josephine Lim
parent 3ceaaa9bb4
commit 8cd87ad148
2 changed files with 11 additions and 13 deletions

View file

@ -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;