fix remaining memory leaks

This commit is contained in:
Kevin Jahns
2016-03-23 14:33:51 +01:00
parent 88971b4e69
commit 83a42271ad
5 changed files with 32 additions and 27 deletions

View File

@@ -182,6 +182,10 @@ g.compareAllUsers = async(function * compareAllUsers (users) {
for (var uid = 0; uid < users.length; uid++) {
var u = users[uid]
u.db.requestTransaction(function * () {
var sv = yield* this.getStateVector()
for (var s of sv) {
yield* this.updateState(s.user)
}
// compare deleted ops against deleteStore
yield* this.os.iterate(this, null, null, function * (o) {
if (o.deleted === true) {