aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-event.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/python/py-event.c')
-rw-r--r--gdb/python/py-event.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/python/py-event.c b/gdb/python/py-event.c
index a50da1f..161a5e1 100644
--- a/gdb/python/py-event.c
+++ b/gdb/python/py-event.c
@@ -95,7 +95,7 @@ evpy_emit_event (PyObject *event,
notifying listeners to avoid skipping callbacks
in the case of a callback being disconnected during
a notification. */
- gdbpy_ref callback_list_copy (PySequence_List (registry->callbacks));
+ gdbpy_ref<> callback_list_copy (PySequence_List (registry->callbacks));
if (callback_list_copy == NULL)
return -1;
@@ -106,7 +106,8 @@ evpy_emit_event (PyObject *event,
if (func == NULL)
return -1;
- gdbpy_ref func_result (PyObject_CallFunctionObjArgs (func, event, NULL));
+ gdbpy_ref<> func_result (PyObject_CallFunctionObjArgs (func, event,
+ NULL));
if (func_result == NULL)
{