Skip to content

Commit

Permalink
Fix crash on Android due to call to App::setDisplayName
Browse files Browse the repository at this point in the history
  • Loading branch information
jhasse committed Sep 12, 2024
1 parent 8d5c38b commit 74fe491
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 74fe491

Please sign in to comment.