even if we don't want to close stdout on wtap_dump_close(), we might at least try to flush it

svn path=/trunk/; revision=17326
This commit is contained in:
Ulf Lamping 2006-02-17 01:47:53 +00:00
parent 924cc60125
commit 58d9f6c3b1
1 changed files with 4 additions and 1 deletions

View File

@ -799,7 +799,10 @@ gboolean wtap_dump_close(wtap_dumper *wdh, int *err)
}
ret = FALSE;
}
}
} else {
/* as we don't close stdout, at least try to flush it */
wtap_dump_flush(wdh);
}
if (wdh->dump.opaque != NULL)
g_free(wdh->dump.opaque);
g_free(wdh);