[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 c7519149fd
commit b1c116b883
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) }
}
)