Commit 0f5163ed authored by Martin Wierich's avatar Martin Wierich

bugfix

parent 405e2606
...@@ -236,8 +236,10 @@ void get_printSetup_with_PRINTDLG(PRINTDLG *pd, CleanString *o_devmode, ...@@ -236,8 +236,10 @@ void get_printSetup_with_PRINTDLG(PRINTDLG *pd, CleanString *o_devmode,
/* PA: called in Clean. */ /* PA: called in Clean. */
int release_memory_handles(PRINTDLG *pd, int os) { int release_memory_handles(PRINTDLG *pd, int os) {
LocalFree(pd->hDevNames); if (pd) {
LocalFree(pd->hDevMode); LocalFree(pd->hDevNames);
LocalFree(pd->hDevMode);
};
return os; return os;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment