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 597331 - Uninitialized destroy_notify function
Uninitialized destroy_notify function
Status: RESOLVED DUPLICATE of bug 607902
Product: vala
Classification: Core
Component: Delegates
0.7.x
Other All
: Normal minor
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2009-10-04 17:01 UTC by sanpi
Modified: 2010-03-22 21:30 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description sanpi 2009-10-04 17:01:37 UTC
Hello,

When I create a delegate function, the destroy_notify function is not set to NULL:

delegate void Foo ();

void main ()
{
  Foo foo;
}


The C code:

...
	GDestroyNotify foo_target_destroy_notify;
	void* foo_target = NULL;
	Foo foo = NULL;
	(foo_target_destroy_notify == NULL) ? NULL : foo_target_destroy_notify (foo_target);
...
Comment 1 rainwoodman 2009-11-06 15:55:27 UTC
what if you create a static delegate?

or 

Foo foo = null?
Comment 2 sanpi 2009-11-06 16:54:53 UTC
> Foo foo = null

Simply... Thank's :)
Comment 3 Jürg Billeter 2010-03-22 21:30:01 UTC
Thanks for taking the time to report this bug.
This particular bug has already been reported into our bug tracking system, but we are happy to tell you that the problem has already been fixed. It should be solved in the next software version. You may want to check for a software upgrade.

*** This bug has been marked as a duplicate of bug 607902 ***