forked from mirrors/linphone-iphone
Always increment python object references before calling event callback.
This commit is contained in:
parent
0b5d65d104
commit
baddfc066b
1 changed files with 1 additions and 2 deletions
|
|
@ -770,9 +770,8 @@ class EventCallbackMethodDefinition(MethodDefinition):
|
|||
""" {get_user_data_code}
|
||||
if (py{name} == NULL) {{
|
||||
{new_from_native_pointer_code}
|
||||
}} else {{
|
||||
Py_INCREF(py{name});
|
||||
}}
|
||||
Py_INCREF(py{name});
|
||||
""".format(name=arg_name, get_user_data_code=get_user_data_code, new_from_native_pointer_code=new_from_native_pointer_code)
|
||||
decref_python_objects_code += "\t\tPy_DECREF(py{name});\n".format(name=arg_name)
|
||||
args=', '.join(args)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue