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

Commit 8bae3a88 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix resource leakage caused by cursor" am: 662ba59a am: 381ac521 am: 2ccf9d95

parents 4f3f92d3 2ccf9d95
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -94,6 +94,8 @@ public class UserDictionaryCursorLoader extends CursorLoader {
            hashSet.add(hash);
            result.addRow(new Object[]{id, word, shortcut});
        }
        // The cursor needs to be closed after use, otherwise it will cause resource leakage
        candidate.close();
        return result;
    }
}