GNOME Bugzilla – Bug 558446
valac assumes destroy function for structs on it's own
Last modified: 2009-09-15 06:22:49 UTC
We have a struct "DIDLLiteResource" in gupnp-av binding, which doesn't have a destroy function but valac assumes there is one by the name "gupnp_didl_lite_resource_destroy" and puts a call to it in the generated C code. Setting the severity to "blocker" since this breaks the build for Rygel.
Regenerating the vapi solves the build issue so this is not a blocker anymore. However Vala now leaks the string fields of the mentioned struct, which needs fixing.
I'm blocked with this bug when using the Gtk.RecentData struct.
I found source of the problem: http://bugzilla.gnome.org/show_bug.cgi?id=559647
commit 7092325a49472d5c108adb5f3e96623c75b77bbd Author: Jürg Billeter <j@bitron.ch> Date: Sun Sep 13 20:38:46 2009 +0200 Add has_copy_function and has_destroy_function struct attributes