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()
|
detachRenderersIfNeeded()
|
||||||
turnScreenOffAndKeyguardOn()
|
turnScreenOffAndKeyguardOn()
|
||||||
removeOnPictureInPictureModeChangedListener(pictureInPictureModeChangedInfoConsumer)
|
removeOnPictureInPictureModeChangedListener(pictureInPictureModeChangedInfoConsumer)
|
||||||
|
screenCaptureServiceConnection.unbind()
|
||||||
super.onDestroy()
|
super.onDestroy()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -47,6 +47,10 @@ class ScreenCaptureServiceConnection @Inject constructor(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun unbind() {
|
||||||
|
callback = null
|
||||||
|
}
|
||||||
|
|
||||||
fun stopScreenCapturing() {
|
fun stopScreenCapturing() {
|
||||||
screenCaptureAndroidService?.stopService()
|
screenCaptureAndroidService?.stopService()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue