Destruct writer before closing files so writer can flush buffers

This commit is contained in:
Jordan Cristiano 2015-06-18 16:11:49 -04:00
parent 4bf5cea15b
commit 1f74901943

View File

@ -110,9 +110,9 @@ int main(const int argc, const char* argv[])
{ {
assert(false); assert(false);
} }
IDemoWriter::FreeDemoWriter(writer);
fclose(inputFp); fclose(inputFp);
fclose(outputFp); fclose(outputFp);
IDemoWriter::FreeDemoWriter(writer);
return 0; return 0;
} }