[MatrixSDK] makes sure to release FFI objects from RustMatrixRoom by calling close

This commit is contained in:
ganfra 2023-03-09 20:22:16 +01:00
parent fc51bd44e8
commit 98911a12ad
4 changed files with 10 additions and 2 deletions

View file

@ -71,6 +71,7 @@ class RoomFlowNode @AssistedInject constructor(
},
onDestroy = {
Timber.v("OnDestroy")
inputs.room.close()
plugins<LifecycleCallback>().forEach { it.onFlowReleased(inputs.room) }
}
)