frame: clean up photo face blob

pull/461/head
Varun Patil 2023-03-03 13:00:05 -08:00
parent 8edd13c034
commit dbfada2baa
1 changed files with 5 additions and 0 deletions

View File

@ -134,6 +134,11 @@ export default defineComponent({
/** Clear timers */
beforeDestroy() {
clearTimeout(this.touchTimer);
// Clean up blob url if face rect was created
if (this.hasFaceRect) {
URL.revokeObjectURL(this.src);
}
},
computed: {