Deallocate the color converter when the light component is unmounted

This commit is contained in:
Fabio Manganiello 2023-01-15 15:25:04 +01:00
parent e9371ac5d0
commit 78e250186b
Signed by untrusted user: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -192,6 +192,11 @@ export default {
this.colorConverter = new ColorConverter(ranges)
},
unmounted() {
if (this.colorConverter)
delete this.colorConverter
},
}
</script>