From 8f2d6f2975b756158aa91039e8c23332f3d9602a Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Tue, 11 Aug 2015 16:25:52 -0700 Subject: [PATCH] GUAC-240: Force flush at end of PNG write. --- src/libguac/encode-png.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libguac/encode-png.c b/src/libguac/encode-png.c index d3632f28..516c1f6c 100644 --- a/src/libguac/encode-png.c +++ b/src/libguac/encode-png.c @@ -396,6 +396,8 @@ int guac_png_write(guac_socket* socket, guac_stream* stream, free(png_rows[y]); free(png_rows); + /* Ensure all data is written */ + guac_png_flush_data(&write_state); return 0; }