Rich UI memory management

Two memory-management functions are available for avoiding memory leaks. The leaks slow your application and can cause the browser to crash.

The issue arises primarily if you declare a widget or embedded handler within a function. These in-function declarations allocate memory at run time. Even after the function ends, the browser returns the memory to the operating system only after the user has closed the browser tab.

Each of the memory-management functions requests that the browser return memory. The browser typically fulfills the request after a delay, but while the application is still running.

The functions are as follows:

None of those functions returns a value.

If you are affected by the issue just described, consider these coding conventions: