Merge pull request #6809 from vector-im/fix/mna/leak-in-call
[Call] Memory leak after a call
This commit is contained in:
commit
971ad26deb
1
changelog.d/6808.misc
Normal file
1
changelog.d/6808.misc
Normal file
@ -0,0 +1 @@
|
||||
[Call] Memory leak after a call
|
@ -241,6 +241,7 @@ class VectorCallActivity :
|
||||
detachRenderersIfNeeded()
|
||||
turnScreenOffAndKeyguardOn()
|
||||
removeOnPictureInPictureModeChangedListener(pictureInPictureModeChangedInfoConsumer)
|
||||
screenCaptureServiceConnection.unbind()
|
||||
super.onDestroy()
|
||||
}
|
||||
|
||||
|
@ -47,6 +47,10 @@ class ScreenCaptureServiceConnection @Inject constructor(
|
||||
}
|
||||
}
|
||||
|
||||
fun unbind() {
|
||||
callback = null
|
||||
}
|
||||
|
||||
fun stopScreenCapturing() {
|
||||
screenCaptureAndroidService?.stopService()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user