GNOME Bugzilla – Bug 343750
g_object_set_data_full docs should state that destroy notify is ignored for NULL data
Last modified: 2006-12-29 05:08:19 UTC
g_object_set_data_full ignores the passed-in destroy notify if the data parameter is NULL, but the docs don't state that. Maybe the destroy parameter docs should be: @destroy: function to call when the association is destroyed. Ignored if @data is %NULL.
what did you expect g_object_set_data_full (NULL,...) to do with the destroy notify ?
I mean g_object_set_data_full (object, "key", NULL, g_free); The effect of the following call is undefined of course: g_object_set_data_full (NULL, "key", data, g_free);
2006-12-28 Matthias Clasen <mclasen@redhat.com> * gobject/tmpl/objects.sgml: Clarify a detail about g_object_set_data_full. (#343750, Christian Neumair)