This commit is contained in:
Alexei Romanoff 2012-10-12 12:32:32 +03:00
parent d5f99959cc
commit 89ce16df39
2 changed files with 4 additions and 1 deletions

View file

@ -207,6 +207,9 @@ static inline int template_callback_map_end(unpack_user* u, msgpack_unpack_objec
{
if (u->object_hook) {
PyObject *new_c = PyEval_CallFunction(u->object_hook, "(O)", *c);
if (!new_c)
return -1;
Py_DECREF(*c);
*c = new_c;
}