frame: clean up photo face blob
parent
8edd13c034
commit
dbfada2baa
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue