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,
/* PA: called in Clean. */
int release_memory_handles(PRINTDLG *pd, int os) {
LocalFree(pd->hDevNames);
LocalFree(pd->hDevMode);
if (pd) {
LocalFree(pd->hDevNames);
LocalFree(pd->hDevMode);
};
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