diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | gobject/pygflags.c | 1 |
2 files changed, 5 insertions, 0 deletions
@@ -1,3 +1,7 @@ +2004-08-08 John Finlay <finlay@moeraki.com> + + * gobject/pygflags.c (pyg_flags_add) Return NULL when no stub. + 2004-08-06 Johan Dahlin <johan@gnome.org> * configure.in (ACLOCAL): diff --git a/gobject/pygflags.c b/gobject/pygflags.c index 98e3a9eb..13c7cab4 100644 --- a/gobject/pygflags.c +++ b/gobject/pygflags.c @@ -204,6 +204,7 @@ pyg_flags_add (PyObject * module, if (!stub) { PyErr_SetString(PyExc_RuntimeError, "can't create const"); pyg_gil_state_release(state); + return NULL; } PyDict_SetItemString(((PyTypeObject *)stub)->tp_dict, |