summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Finlay <finlay@src.gnome.org>2004-08-08 07:51:49 +0000
committerJohn Finlay <finlay@src.gnome.org>2004-08-08 07:51:49 +0000
commitbbde321f38811c4de93825255a57c3383cf90781 (patch)
tree4f2f39423322171f7d3e1e2a73c3a3a931a24718
parentbf6a98e9b90b99cbc12e84be278dddbf697087f1 (diff)
downloadpygobject-bbde321f38811c4de93825255a57c3383cf90781.tar.gz
gobject/pygflags.c (pyg_flags_add) Return NULL when no stub.
* gobject/pygflags.c (pyg_flags_add) Return NULL when no stub.
-rw-r--r--gobject/pygflags.c1
1 files changed, 1 insertions, 0 deletions
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,