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: blacklight
GPG Key ID: D90FBA7F76362774
1 changed files with 5 additions and 0 deletions

View File

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