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] Generate owned variant for opaques if possible. #162

Closed Therzok closed 7 years ago

Therzok commented 7 years ago

https://gist.github.com/Therzok/371ac6b35df880b590a39ec968cb57bc

Therzok commented 7 years ago

cc @alanmcgovern @DavidKarlas

knocte commented 7 years ago

What's the why here? What happens if this patch is not applied? Double free? Leak?

Therzok commented 7 years ago

@knocte amended commit with explanation

alanmcgovern commented 7 years ago

:+1:

knocte commented 7 years ago

Thanks.

(BTW the last two commits should have been "Gtk: " and "Pango: ", not [Misc])

Therzok commented 7 years ago

Yeah, you're right. I'll fix that on forward-port to master.