Skip to content

Commit

Permalink
リーク防止の後処理が抜けていたので追加
Browse files Browse the repository at this point in the history
  • Loading branch information
tnoho committed Sep 14, 2024
1 parent 0059199 commit 9fe97ee
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/sora_sdk_ext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ int connection_tp_traverse(PyObject* self, visitproc visit, void* arg) {
Py_VISIT(on_disconnect.ptr());
}

if (conn->on_signaling_message_) {
nb::object on_disconnect =
nb::cast(conn->on_signaling_message_, nb::rv_policy::none);
Py_VISIT(on_disconnect.ptr());
}

if (conn->on_notify_) {
nb::object on_notify = nb::cast(conn->on_notify_, nb::rv_policy::none);
Py_VISIT(on_notify.ptr());
Expand Down

0 comments on commit 9fe97ee

Please sign in to comment.