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

Commit 662ba59a authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix resource leakage caused by cursor"

parents b2b16851 38f1b45d
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -94,6 +94,8 @@ public class UserDictionaryCursorLoader extends CursorLoader {
            hashSet.add(hash);
            hashSet.add(hash);
            result.addRow(new Object[]{id, word, shortcut});
            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;
        return result;
    }
    }
}
}