Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9f38ae2e authored by Vairavan Srinivasan's avatar Vairavan Srinivasan Committed by Steve Kondik
Browse files

frameworks/base: proper clean of CursorWrapper in ContentResolver

Fix to close the actual cursor (via CursorWrapper) as and when
the Wrapper is finalized (without being closed).

Change-Id: I5adb001af64126b64481e084a0fc852a89ca9085
parent c4334fba
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1405,7 +1405,7 @@ public abstract class ContentResolver {
        protected void finalize() throws Throwable {
            try {
                if(!mCloseFlag) {
                    ContentResolver.this.releaseProvider(mContentProvider);
                    this.close();
                }
            } finally {
                super.finalize();