fix access violation in status_finish() if window port not initialized

This commit is contained in:
nhmall
2018-05-21 18:31:45 -04:00
parent 81e422189c
commit f614b9e27e
2 changed files with 5 additions and 1 deletions

View File

@@ -876,7 +876,8 @@ status_finish()
int i;
/* call the window port cleanup routine first */
(*windowprocs.win_status_finish)();
if (windowprocs.win_status_finish)
(*windowprocs.win_status_finish)();
/* free memory that we alloc'd now */
for (i = 0; i < MAXBLSTATS; ++i) {