From 3c1663adebbeab7898ed20972990b0ef29552b14 Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 20 Jun 2022 20:27:00 +0400 Subject: [PATCH] Fix couple of possible crashes. Fixes #24613. --- Telegram/SourceFiles/calls/group/calls_group_call.cpp | 3 +++ Telegram/ThirdParty/tgcalls | 2 +- Telegram/lib_ui | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/calls/group/calls_group_call.cpp b/Telegram/SourceFiles/calls/group/calls_group_call.cpp index a01f529f16..d4d9f17afc 100644 --- a/Telegram/SourceFiles/calls/group/calls_group_call.cpp +++ b/Telegram/SourceFiles/calls/group/calls_group_call.cpp @@ -3482,6 +3482,7 @@ void GroupCall::destroyController() { DEBUG_LOG(("Call Info: Destroying call controller..")); invalidate_weak_ptrs(&_instanceGuard); + _instance->stop(); crl::async([ instance = base::take(_instance), done = _delegate->groupCallAddAsyncWaiter() @@ -3497,6 +3498,8 @@ void GroupCall::destroyScreencast() { if (_screenInstance) { DEBUG_LOG(("Call Info: Destroying call screen controller..")); invalidate_weak_ptrs(&_screenInstanceGuard); + + _screenInstance->stop(); crl::async([ instance = base::take(_screenInstance), done = _delegate->groupCallAddAsyncWaiter() diff --git a/Telegram/ThirdParty/tgcalls b/Telegram/ThirdParty/tgcalls index 7dd3cf86a3..c2620d42ee 160000 --- a/Telegram/ThirdParty/tgcalls +++ b/Telegram/ThirdParty/tgcalls @@ -1 +1 @@ -Subproject commit 7dd3cf86a3daa1ee8c1022930816cc8044d0ed5b +Subproject commit c2620d42ee6cff0c9fb078c1a6956c5c7fb6448e diff --git a/Telegram/lib_ui b/Telegram/lib_ui index b305df8cc5..dbc0e87c80 160000 --- a/Telegram/lib_ui +++ b/Telegram/lib_ui @@ -1 +1 @@ -Subproject commit b305df8cc5c853b564ec0fe0b8b121c2a4e10b19 +Subproject commit dbc0e87c8058b77d79c20a1c24e5c6d9fe8cacea