Memory leaks and desktop application

Hi, just to be sure I understand it well :When I launch a java "desktop" application, the JVM is launched and then closed after the main has returned. So, if the application caused some leaks, the memory will be freed anyway when the JVM is closed.Is it right ?
[282 byte] By [JF_La] at [2007-11-15]