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

[Gen] Don't generate extra array allocations for signals. #154

Closed Therzok closed 8 years ago

Therzok commented 8 years ago

https://gist.github.com/Therzok/da422b1d097350eda25ea463545d2c23

cc @DavidKarlas @alanmcgovern

meebey commented 8 years ago

That will lead to leaks if the managed code throws an exception before the Dispose() call

Therzok commented 8 years ago

Sorry, updated the gist now. It was a reversed diff.

meebey commented 8 years ago

LGTM now :)