From 8a60658af7a077bf6ab705c0877abff2092036a6 Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 15 May 2017 11:17:59 +0300 Subject: [PATCH] Fix crash in calls panel closing. --- Telegram/SourceFiles/calls/calls_panel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/calls/calls_panel.cpp b/Telegram/SourceFiles/calls/calls_panel.cpp index b167fd02a..8d4887ee0 100644 --- a/Telegram/SourceFiles/calls/calls_panel.cpp +++ b/Telegram/SourceFiles/calls/calls_panel.cpp @@ -646,7 +646,9 @@ void Panel::paintEvent(QPaintEvent *e) { } void Panel::closeEvent(QCloseEvent *e) { - _call->hangup(); + if (_call) { + _call->hangup(); + } } void Panel::mousePressEvent(QMouseEvent *e) {