frame: clean up photo face blob
parent
8edd13c034
commit
dbfada2baa
|
@ -134,6 +134,11 @@ export default defineComponent({
|
||||||
/** Clear timers */
|
/** Clear timers */
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
clearTimeout(this.touchTimer);
|
clearTimeout(this.touchTimer);
|
||||||
|
|
||||||
|
// Clean up blob url if face rect was created
|
||||||
|
if (this.hasFaceRect) {
|
||||||
|
URL.revokeObjectURL(this.src);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
|
|
Loading…
Reference in New Issue