We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a56298 commit 3da8fbcCopy full SHA for 3da8fbc
1 file changed
src/SumatraPDF.cpp
@@ -2991,7 +2991,7 @@ static void DeleteCurrentFile(MainWindow* win) {
2991
return;
2992
}
2993
auto* ctrl = win->ctrl;
2994
- const char* path = ctrl->GetFilePath();
+ const char* path = str::DupTemp(ctrl->GetFilePath());
2995
// this happens e.g. for embedded documents and directories
2996
if (!file::Exists(path)) {
2997
0 commit comments