Skip to content

Commit

Permalink
maybe work-around crash in PrintFile()
Browse files Browse the repository at this point in the history
  • Loading branch information
kjk committed Jun 4, 2022
1 parent 58f0098 commit 08a386b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Print.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 08a386b

Please sign in to comment.