diff options
Diffstat (limited to 'gobject')
-rw-r--r-- | gobject/pygoptiongroup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gobject/pygoptiongroup.c b/gobject/pygoptiongroup.c index 4b284c6..09058d8 100644 --- a/gobject/pygoptiongroup.c +++ b/gobject/pygoptiongroup.c @@ -88,9 +88,9 @@ pyg_option_group_dealloc(PyGOptionGroup *self) if (!self->other_owner && !self->is_in_context) { GOptionGroup *tmp = self->group; - g_assert(tmp != NULL); self->group = NULL; - g_option_group_free(tmp); + if (tmp) + g_option_group_free(tmp); } PyObject_Del(self); |