summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--gobject/pygflags.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 6f1da3f8..0f1e2c10 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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,