Z
Z
Zerstoren2012-10-31 01:13:26
JavaScript
Zerstoren, 2012-10-31 01:13:26

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

1 answer(s)
D
Denis Pushkarev, 2012-10-31
@rock

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 question

Ask a Question

731 491 924 answers to any question