Fix two zero byte files being left behind after calibre quits on windows

This commit is contained in:
Kovid Goyal 2011-05-05 14:34:41 -06:00
parent d371225d5d
commit 1647e17684

View File

@ -23,6 +23,9 @@ wWinMain(HINSTANCE Inst, HINSTANCE PrevInst,
ret = execute_python_entrypoint(BASENAME, MODULE, FUNCTION,
stdout_redirect, stderr_redirect);
if (stdout != NULL) fclose(stdout);
if (stderr != NULL) fclose(stderr);
DeleteFile(stdout_redirect);
DeleteFile(stderr_redirect);