[MatrixSDK] makes sure to release FFI objects from RustMatrixRoom by calling close
This commit is contained in:
parent
fc51bd44e8
commit
98911a12ad
4 changed files with 10 additions and 2 deletions
|
|
@ -71,6 +71,7 @@ class RoomFlowNode @AssistedInject constructor(
|
|||
},
|
||||
onDestroy = {
|
||||
Timber.v("OnDestroy")
|
||||
inputs.room.close()
|
||||
plugins<LifecycleCallback>().forEach { it.onFlowReleased(inputs.room) }
|
||||
}
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue