am d77d17c2: Merge "Fix cursor memory leak"
* commit 'd77d17c28d6f120ceb648747c7e2ef1a50215700': Fix cursor memory leak
This commit is contained in:
committed by
Android Git Automerger
commit
64ed6b2cfa
@@ -424,6 +424,9 @@ public abstract class AbstractCursor implements CrossProcessCursor {
|
||||
if (mSelfObserver != null && mSelfObserverRegistered == true) {
|
||||
mContentResolver.unregisterContentObserver(mSelfObserver);
|
||||
}
|
||||
try {
|
||||
if (!mClosed) close();
|
||||
} catch(Exception e) { }
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user