diff options
Diffstat (limited to 'gobject')
| -rw-r--r-- | gobject/pygflags.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gobject/pygflags.c b/gobject/pygflags.c index bfd5128..853f5c2 100644 --- a/gobject/pygflags.c +++ b/gobject/pygflags.c @@ -184,9 +184,9 @@ pyg_flags_from_gtype (GType gtype, int value) ((PyIntObject*)retval)->ob_ival = value; ((PyGFlags*)retval)->gtype = gtype; - } - - Py_INCREF(retval); + } else { + Py_INCREF(retval); + } return retval; } |
