vcl/source/gdi/embeddedfontsafdko.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
New commits: commit eb9f6cf0c62e0ebd2a9774e4907b04865d5126ba Author: Caolán McNamara <[email protected]> AuthorDate: Thu Oct 16 20:20:27 2025 +0100 Commit: Miklos Vajna <[email protected]> CommitDate: Fri Oct 17 09:53:09 2025 +0200 fclose file before rename Change-Id: Icda37010adea152c9a8c14e22840717a4908c488 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192551 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Miklos Vajna <[email protected]> diff --git a/vcl/source/gdi/embeddedfontsafdko.cxx b/vcl/source/gdi/embeddedfontsafdko.cxx index 618006122efb..c067c6e2d10f 100644 --- a/vcl/source/gdi/embeddedfontsafdko.cxx +++ b/vcl/source/gdi/embeddedfontsafdko.cxx @@ -186,11 +186,10 @@ bool EmbeddedFontsManager::mergefonts(const OUString& cidFontInfoUrl, const OUSt h->dst.stm.filename = const_cast<char*>(tmpdestfile.getStr()); setMode(h, mode_t1); bool result = convertTx(h); + mergeFontsFree(h); remove(destFilePathA.getStr()); - rename(h->dst.stm.filename, destFilePathA.getStr()); - - mergeFontsFree(h); + rename(tmpdestfile.getStr(), destFilePathA.getStr()); return result; }
