From 74fe491ee1f92f2c80645c916c36af242b2237dd Mon Sep 17 00:00:00 2001 From: Jan Niklas Hasse Date: Thu, 12 Sep 2024 18:05:10 +0200 Subject: [PATCH] Fix crash on Android due to call to App::setDisplayName --- src/App.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/App.cpp b/src/App.cpp index b1cabbfc..af3c8fa0 100644 --- a/src/App.cpp +++ b/src/App.cpp @@ -80,6 +80,9 @@ std::string App::getDisplayName() const { } void App::setDisplayName(const std::string& displayName) { + if (!impl) { // e.g. Android when using showWindow without jnglInit + new Finally(init({})); // leak + } impl->displayName = displayName; }