After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 558446 - valac assumes destroy function for structs on it's own
valac assumes destroy function for structs on it's own
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Structs
0.4.x
Other All
: Normal major
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2008-10-29 20:23 UTC by Zeeshan Ali
Modified: 2009-09-15 06:22 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Zeeshan Ali 2008-10-29 20:23:42 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.
Comment 1 Zeeshan Ali 2008-10-31 12:19:38 UTC
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.
Comment 2 sanpi 2008-11-01 21:53:43 UTC
I'm blocked with this bug when using the Gtk.RecentData struct.
Comment 3 sanpi 2008-11-06 19:27:57 UTC
I found source of the problem: http://bugzilla.gnome.org/show_bug.cgi?id=559647
Comment 4 Jürg Billeter 2009-09-15 06:22:49 UTC
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