mono / gtk-sharp

Gtk# is a Mono/.NET binding to the cross platform Gtk+ GUI toolkit and the foundation of most GUI apps built with Mono
http://www.mono-project.com/GtkSharp
Other
428 stars 140 forks source link

[Generator] Override dispose for opaques #171

Closed Therzok closed 7 years ago

Therzok commented 7 years ago

When owning an opaque, we need to properly implement the Dispose method, otherwise if someone disposes and doesn't wait for the finalizer to hit, it'll leak memory.

https://gist.github.com/Therzok/370fa07bfe84d848fb87cf1d5d3450b9

Therzok commented 7 years ago

Found the actual issue.