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
|
@ -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…
Reference in New Issue