From ae837b3cc01a2c7bc1cc5b90feee41a63ae7a611 Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Tue, 15 Nov 2005 22:13:03 +0000 Subject: We always need to free interfaces since its a null terminated array. * gobject/pygobject.c (pygobject_new_with_interfaces): We always need to free interfaces since its a null terminated array. --- gobject/pygobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gobject/pygobject.c b/gobject/pygobject.c index 9efa376..ac61cb5 100644 --- a/gobject/pygobject.c +++ b/gobject/pygobject.c @@ -580,8 +580,8 @@ pygobject_new_with_interfaces(GType gtype) PyTuple_SetItem(bases, i+1, (PyObject*)py_interface_type); } - g_free(interfaces); } + g_free(interfaces); dict = PyDict_New(); -- cgit