gotk4 icon indicating copy to clipboard operation
gotk4 copied to clipboard

Bring back Unref methods

Open diamondburned opened this issue 2 years ago • 0 comments

Unref methods should definitely be restored as a workaround for gotk4's incomplete automatic memory management. It's probably the most straightforward way for applications to fix memory leak issues.

Ideally, when calling Unref, we should clean up all of the internal automatic object tracking. We should at least:

  • Delete all callbacks off the registry,
  • Delete the interned object itself off the registry, and
  • Delete all finalizers attached to the interned object.

diamondburned avatar May 11 '23 09:05 diamondburned