Prevent cursor from causing global reference leaks.

To fix this the ContentQueryMap needs to be closed
when onStop is called so any global references can
be reclaimed.

Change-Id: I0c679c10b0d75ab0aac2fe499563c57d934e318a
This commit is contained in:
Per Allard
2012-10-09 14:18:55 +02:00
committed by Henrik Baard
parent 505232be07
commit 5416d07100

View File

@@ -76,6 +76,7 @@ public class LocationSettings extends SettingsPreferenceFragment
if (mSettingsObserver != null) {
mContentQueryMap.deleteObserver(mSettingsObserver);
}
mContentQueryMap.close();
}
private PreferenceScreen createPreferenceHierarchy() {