am 2eecdd1a
: Don\'t leak cursors
* commit '2eecdd1a50676eaae98b75d1d74de697cff39dd7': Don't leak cursors
This commit is contained in:
commit
b93422d167
@ -4592,9 +4592,14 @@ public class EmailProvider extends ContentProvider
|
||||
final int nameColumn = projectionList.indexOf(UIProvider.FolderColumns.NAME);
|
||||
final int typeColumn = projectionList.indexOf(UIProvider.FolderColumns.TYPE);
|
||||
if (c.moveToFirst()) {
|
||||
c = getUiFolderCursorRowFromMailboxCursorRow(
|
||||
new MatrixCursorWithCachedColumns(uiProjection),
|
||||
uiProjection.length, c, nameColumn, typeColumn);
|
||||
final Cursor closeThis = c;
|
||||
try {
|
||||
c = getUiFolderCursorRowFromMailboxCursorRow(
|
||||
new MatrixCursorWithCachedColumns(uiProjection),
|
||||
uiProjection.length, c, nameColumn, typeColumn);
|
||||
} finally {
|
||||
closeThis.close();
|
||||
}
|
||||
}
|
||||
notifyUri = UIPROVIDER_FOLDER_NOTIFIER.buildUpon().appendPath(mailboxIdString)
|
||||
.build();
|
||||
|
Loading…
Reference in New Issue
Block a user