Fluid: fix reference to delete string
Build and Test / build-linux (push) Canceled after 0s
Build and Test / build-wayland (push) Canceled after 0s
Build and Test / build-wayland-arm64 (push) Canceled after 0s
Build and Test / build-macos (push) Canceled after 0s
Build and Test / build-windows (push) Canceled after 0s
Build and Test / build-windows-arm (push) Canceled after 0s

This commit is contained in:
Matthias Melcher
2026-08-03 15:24:09 +02:00
parent 1d0619b445
commit 1062c16e07
+4 -3
View File
@@ -593,8 +593,9 @@ void Application::save_project_file(void *v) {
flush_text_widgets();
const char *c = proj.proj_filename;
std::string new_filename;
if (v || !c || !*c) {
std::string filename = fluid::io::filechooser(
new_filename = fluid::io::filechooser(
fluid::io::FileChooserType::SAVE_FILE,
fluid::io::FileChooserPath::ABSOLUTE_PATH,
"Save Project File As",
@@ -603,8 +604,8 @@ void Application::save_project_file(void *v) {
history.latest_project_path(),
"Fluid Project Files\t*.fl"
);
if (filename.empty()) return;
c = filename.c_str();
if (new_filename.empty()) return;
c = new_filename.c_str();
#if 0 // filechooser is already doing this check, so we don't need to do it again here
if (!fl_access(c, 0)) {