kobra-dev / Kobra

Kobra is a visual programming language (like Scratch) for Machine Learning
https://studio.kobra.dev
Other
264 stars 19 forks source link

Dispose workspace to avoid memory leak #56

Open Merlin04 opened 3 years ago

Merlin04 commented 3 years ago

https://groups.google.com/g/blockly/c/kO73J-XImMw Currently we do not call dispose before loading the new workspace XML.

Merlin04 commented 3 years ago

I tried adding Blockly.getMainWorkspace().dispose(); before the new XML is loaded in but it deleted the editor and didn't recreate it