Call fclose() in deferred example. (Andy Zhang).

This commit is contained in:
Matt Pharr
2012-03-07 08:50:10 -08:00
parent f39fbdb3fc
commit 640918bcc0

View File

@@ -204,6 +204,7 @@ void WriteFrame(const char *filename, const InputData *input,
fprintf(out, "P6 %d %d 255\n", input->header.framebufferWidth,
input->header.framebufferHeight);
fwrite(framebufferAOS, imageBytes, 1, out);
fclose(out);
lAlignedFree(framebufferAOS);
}