How to destroy UMG widget?

Memory leaks are much more likely without garbage collection, as you have to manually destroy everything.

Hopefully this will shed some light on the memory management in ue4.

It is possible to manually initiate garbage collection for a specific uobject if that’s what you would like. (This requires C++ however I believe)

1 Like