Merge pull request #50301 from likeich/master
Fix use after free in Free desktop screensaver::inhibit()
This commit is contained in:
commit
fb4b73ff0a
1 changed files with 2 additions and 1 deletions
|
@ -55,7 +55,8 @@ void FreeDesktopScreenSaver::inhibit() {
|
||||||
}
|
}
|
||||||
|
|
||||||
String app_name_string = ProjectSettings::get_singleton()->get("application/config/name");
|
String app_name_string = ProjectSettings::get_singleton()->get("application/config/name");
|
||||||
const char *app_name = app_name_string.is_empty() ? "Godot Engine" : app_name_string.utf8().get_data();
|
CharString app_name_utf8 = app_name_string.utf8();
|
||||||
|
const char *app_name = app_name_string.is_empty() ? "Godot Engine" : app_name_utf8.get_data();
|
||||||
|
|
||||||
const char *reason = "Running Godot Engine project";
|
const char *reason = "Running Godot Engine project";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue