deinit z_stream properly if reading from input fails
deinit z_stream properly if reading from input fails

Change-Id: Ifb057fbc5b7bc990f59d7938fa9853ce2cd94a31

LibreOffice/libfreehand,freedesktop-unofficial-mirror/libreoffice__libfreehand,freedesktop-unofficial-mirror/libreoffice__libfreehand,LibreOffice/libfreehand,LibreOffice/libfreehand,freedesktop-unofficial-mirror/libreoffice__libfreehand,LibreOffice/libfreehand