From cfa8ecbb2eccd456179cfb3aa6e84085c156a363 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 14 Apr 2026 11:22:51 +0700 Subject: [PATCH] Fix possible crash in ResolveWindowDefault. --- Telegram/SourceFiles/chat_helpers/compose/compose_show.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Telegram/SourceFiles/chat_helpers/compose/compose_show.cpp b/Telegram/SourceFiles/chat_helpers/compose/compose_show.cpp index 32a2eff1f8..872f4ef7af 100644 --- a/Telegram/SourceFiles/chat_helpers/compose/compose_show.cpp +++ b/Telegram/SourceFiles/chat_helpers/compose/compose_show.cpp @@ -37,6 +37,8 @@ ResolveWindow ResolveWindowDefault() { return b; } else if (const auto c = check(app.windowFor(account))) { return c; + } else if (Core::Quitting()) { + return nullptr; } else if (const auto d = check(app.ensureSeparateWindowFor( account))) { return d;