зеркало из https://github.com/mozilla/gecko-dev.git
fix memory leak of writer
This commit is contained in:
Родитель
61c363178b
Коммит
4fc9a22e1c
|
@ -268,6 +268,8 @@ morkThumb::Make_LargeCommit(morkEnv* ev,
|
|||
morkStore::SlotStrongStore(ioStore, ev, &outThumb->mThumb_Store);
|
||||
morkFile::SlotStrongFile(file, ev, &outThumb->mThumb_File);
|
||||
morkWriter::SlotStrongWriter(writer, ev, &outThumb->mThumb_Writer);
|
||||
// writer no longer holds on to this.
|
||||
writer->CutStrongRef(ev);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -268,6 +268,8 @@ morkThumb::Make_LargeCommit(morkEnv* ev,
|
|||
morkStore::SlotStrongStore(ioStore, ev, &outThumb->mThumb_Store);
|
||||
morkFile::SlotStrongFile(file, ev, &outThumb->mThumb_File);
|
||||
morkWriter::SlotStrongWriter(writer, ev, &outThumb->mThumb_Writer);
|
||||
// writer no longer holds on to this.
|
||||
writer->CutStrongRef(ev);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче