Add missing reference decrement in the Python wrapper.

This commit is contained in:
Ghislain MARY 2014-08-04 16:25:13 +02:00
parent 123e4ccdfe
commit b79cc5738d

View file

@ -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;
}