From b79cc5738dc74370ddf60b03e29ce092e532b0d6 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Mon, 4 Aug 2014 16:25:13 +0200 Subject: [PATCH] Add missing reference decrement in the Python wrapper. --- tools/python/apixml2python/handwritten.mustache | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/python/apixml2python/handwritten.mustache b/tools/python/apixml2python/handwritten.mustache index 69f73533b..6971b7cb6 100644 --- a/tools/python/apixml2python/handwritten.mustache +++ b/tools/python/apixml2python/handwritten.mustache @@ -92,6 +92,7 @@ static PyObject * pylinphone_module_method_set_log_handler(PyObject *self, PyObj if (linphone_module != NULL) { Py_INCREF(callback); PyObject_SetAttrString(linphone_module, "__log_handler", callback); + Py_DECREF(linphone_module); } Py_RETURN_NONE; }