diamondburned/gotk4

Proposal: Object.Destroy()

diamondburned opened this issue · 0 comments

As a workaround to the memory leaks that some objects might exhibit when encountering cyclical references, glib.Objects can have a Destroy() object that allows the user to manually and permanently destroy an object, erasing any finalizers that it may have.

This can be used as a workaround for applications that leak a lot of memory loading images and such.