From bbde321f38811c4de93825255a57c3383cf90781 Mon Sep 17 00:00:00 2001 From: John Finlay Date: Sun, 8 Aug 2004 07:51:49 +0000 Subject: gobject/pygflags.c (pyg_flags_add) Return NULL when no stub. * gobject/pygflags.c (pyg_flags_add) Return NULL when no stub. --- gobject/pygflags.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gobject/pygflags.c b/gobject/pygflags.c index 98e3a9e..13c7cab 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, -- cgit