summaryrefslogtreecommitdiff
path: root/gi/pygi-info.c
diff options
context:
space:
mode:
Diffstat (limited to 'gi/pygi-info.c')
-rw-r--r--gi/pygi-info.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gi/pygi-info.c b/gi/pygi-info.c
index 43ee711..c07d113 100644
--- a/gi/pygi-info.c
+++ b/gi/pygi-info.c
@@ -175,9 +175,10 @@ _base_info_dealloc (PyGIBaseInfo *self)
g_base_info_unref (self->info);
- pygi_callable_cache_free(self->cache);
+ if (self->cache != NULL)
+ pygi_callable_cache_free ( (PyGICallableCache *) self->cache);
- Py_TYPE( (PyObject *) self)->tp_free ( (PyObject *) self);
+ Py_TYPE (self)->tp_free ((PyObject *)self);
}
static PyObject *