GNOME Bugzilla – Bug 625170
Generics don't work in compact classes
Last modified: 2018-05-22 13:43:27 UTC
Created attachment 166477 [details] example demonstrating bug It seems that Gee.TreeMap doesn't release all the references it has to the items it contains. See the example code, where I would expect a message from the destructor.
Problem is in vala code generation.
Created attachment 166538 [details] Test case - vala
Created attachment 166539 [details] Test case - c Code generated is: struct _Test { gpointer key; }; void test_free (Test* self) { g_slice_free (Test, self); } Instead of: struct _Test { GDestroyNotify g_destroy_func; gpointer key; }; void test_free (Test* self) { self->g_destroy_func(self->key); g_slice_free (Test, self); }
(In reply to comment #0) > Created an attachment (id=166477) [details] > example demonstrating bug > > It seems that Gee.TreeMap doesn't release all the references it has to the > items it contains. See the example code, where I would expect a message from > the destructor. While I belive that it is vala poblem the workaround is present in both master and 0.6 branch.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/vala/issues/126.