Skip to content

Commit 08a386b

Browse files
committed
maybe work-around crash in PrintFile()
1 parent 58f0098 commit 08a386b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Print.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -1214,7 +1214,11 @@ bool PrintFile(EngineBase* engine, WCHAR* printerName, bool displayErrors, const
12141214
}
12151215
}
12161216

1217-
delete printer;
1217+
// TODO: I saw a crash in crash report where we crash inside ~Printer
1218+
// in str::Free(name)
1219+
// I can't see why this could happen but maybe it's just a random memory corruption
1220+
// if it's memory corruption then we'll crash anyway
1221+
// delete printer;
12181222
return ok;
12191223
}
12201224

0 commit comments

Comments
 (0)