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

Commit 2ccf9d95 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

parents a9339778 381ac521
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;
    }
}