How do I cleanup correctly in playn
I'm running my PlayN-game in the browser. In my task manager I see how the memory of google chrome or firefox is getting bigger and bigger up to 512 MB.

The probable reason is that I don't clean up and destroy all my elements that I use in playn.
I didn't clean up anything since the GarbageCollector was doing that in java for me and I didn't think about getting problems in HTML5.

So what is the easiest way to clean up everything (IFaces, Layers, Images...) after using it?

Can I just destroy the iface or the top layer and PlayN destroys all subelements for me?
If I destroy an ImageLayer, the underlying Image is probably not destroyed, right?

Sorry for the unspecific question. I only need to understand the general concept and best practices for it.
How do I cleanup correctly in playn
===

I'm running my PlayN-game in the browser. In my task manager I see how the memory of google chrome or firefox is getting bigger and bigger up to 512 MB.

The probable reason is that I don't clean up and destroy all my elements that I use in playn.
I didn't clean up anything since the GarbageCollector was doing that in java for me and I didn't think about getting problems in HTML5.

So what is the easiest way to clean up everything (IFaces, Layers, Images...) after using it?

Can I just destroy the iface or the top layer and PlayN destroys all subelements for me?
If I destroy an ImageLayer, the underlying Image is probably not destroyed, right?

Sorry for the unspecific question. I only need to understand the general concept and best practices for it.