gobject: re-allow finalization from constructor()
authorDan Winship <danw@gnome.org>
Mon, 2 Dec 2013 16:59:30 +0000 (11:59 -0500)
committerDan Winship <danw@gnome.org>
Sat, 15 Feb 2014 15:20:53 +0000 (10:20 -0500)
commit5cab3fcec13f9b9b13ebb483498e3e50bc1a4b45
tree68e1f06d9b6afa99586ab56fbae4dd4a8dcad3a4
parent074df396813692c7680c5406224131eda554d474
gobject: re-allow finalization from constructor()

Although returning NULL from constructor is strongly discouraged, some
old libraries need to keep doing it for ABI-compatibility reasons.
Given this, it's rude to forbid finalization from within
constructor(), since it would otherwise work correctly now anyway (and
the critical when returning NULL should discourage any new uses of
returning NULL from constructor()).

https://bugzilla.gnome.org/show_bug.cgi?id=661576
gobject/gobject.c
gobject/tests/object.c