DtTerm: Coverity (memory corruption)

This commit is contained in:
Jon Trulson 2014-12-26 14:08:24 -07:00
parent fa0074904b
commit b0548ce111
1 changed files with 2 additions and 1 deletions

View File

@ -510,8 +510,9 @@ ForceCloseLog(DtTermPrimitiveWidget tw)
if (tw->term.log_on)
{
(void) fclose(tpd->logStream);
(void) DeleteLogFileEntry(tpd->logStream);
(void) fclose(tpd->logStream);
tpd->logStream = NULL;
tw->term.log_on = False;
}
}