Skip to content

Commit 9ff1d0f

Browse files
authored
flush dump files before closing (#75)
1 parent dd275a5 commit 9ff1d0f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/DMD.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,6 +1491,7 @@ void DMD::DumpDMDTxtThread()
14911491
{
14921492
if (f)
14931493
{
1494+
fflush(f);
14941495
fclose(f);
14951496
f = nullptr;
14961497
}
@@ -1628,6 +1629,7 @@ void DMD::DumpDMDRawThread()
16281629
{
16291630
if (f)
16301631
{
1632+
fflush(f);
16311633
fclose(f);
16321634
f = nullptr;
16331635
}

0 commit comments

Comments
 (0)