gobject: Document that classes/objects/interfaces are zero-filled
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Tue, 29 Apr 2014 07:47:14 +0000 (08:47 +0100)
committerPhilip Withnall <philip.withnall@collabora.co.uk>
Tue, 29 Apr 2014 09:40:20 +0000 (10:40 +0100)
commit704852ff097f848dcb89ba553431b460938d8d91
treeb078de8c2c41970524dff793f4edf05e50699558
parentcb3f6f95477a90e4ea828595401d593298dca1bd
gobject: Document that classes/objects/interfaces are zero-filled

On initialisation, GObject guarantees to zero-fill
class/object/interface structures. Document this so people don’t spend
forever writing:
    my_object->priv->some_member = NULL;
    my_object->priv->some_other_member = NULL;

https://bugzilla.gnome.org/show_bug.cgi?id=729167
docs/reference/gobject/tut_howto.xml
gobject/gtype.c
gobject/gtype.h