Closed Wicpar closed 1 year ago
proper code to dispose
@override
void dispose() async {
super.dispose();
await _stream?.attachAudio(null);
await _stream?.attachVideo(null);
await _stream?.dispose();
_connection?.dispose();
}
Describe the bug
Segfault in OplusCCodec when closing or disposing the connection or stream.
To Reproduce
@override void dispose() { super.dispose(); _connection?.close(); }
Expected behavior
it doesn't crash the app.
Version
haishin_kit: 0.9.2
Smartphone info.
Additional context
any attempt to close or dispose the resource ends in a segfault.
Screenshots
No response
Relevant log output