From 08a386b72947be42fef364e95a188349df7d5418 Mon Sep 17 00:00:00 2001 From: Krzysztof Kowalczyk Date: Sat, 4 Jun 2022 16:23:50 -0400 Subject: [PATCH] maybe work-around crash in PrintFile() --- src/Print.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Print.cpp b/src/Print.cpp index c88b5606e2ab..afb8b234ef5e 100755 --- a/src/Print.cpp +++ b/src/Print.cpp @@ -1214,7 +1214,11 @@ bool PrintFile(EngineBase* engine, WCHAR* printerName, bool displayErrors, const } } - delete printer; + // TODO: I saw a crash in crash report where we crash inside ~Printer + // in str::Free(name) + // I can't see why this could happen but maybe it's just a random memory corruption + // if it's memory corruption then we'll crash anyway + // delete printer; return ok; }