Answer the question
In order to leave comments, you need to log in
How to properly remove the virtual canvas layer from the RAM?
In general, I draw in a virtual cache layer.
But when it is required to delete this cache, then by the delete command, to a single link (I already checked this), the RAM does not want to be cleared. Which means the app is leaking.
How to properly delete a virtual layer from RAM?
Answer the question
In order to leave comments, you need to log in
In javascript, garbage is cleaned automatically. delete deletes only the reference, and the memory will be cleared when the garbage collector runs, i.e. when the engine sees fit.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question