summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/cc4group.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/cc4group.c b/src/cc4group.c
index 0bc1029..9415dd1 100644
--- a/src/cc4group.c
+++ b/src/cc4group.c
@@ -653,14 +653,6 @@ static bool cc4group_uncompressGroup(CC4Group* const this, CC4Group_ReadCallback
goto ret;
}
- if(deinitCallback != NULL)
- {
- if(!deinitCallback(callbackArg))
- {
- fprintf(stderr, "WARNING: cc4group_uncompressGroup: the deinitCallback failed\n");
- }
- }
-
if(strm.avail_in > 0 || ret != Z_STREAM_END)
{
SET_MALFORMED_MESSAGE_ERROR("The group contents are read completely but more data is left to read");
@@ -670,6 +662,14 @@ static bool cc4group_uncompressGroup(CC4Group* const this, CC4Group_ReadCallback
retData = uncompressedData;
ret:
+ if(deinitCallback != NULL)
+ {
+ if(!deinitCallback(callbackArg))
+ {
+ fprintf(stderr, "WARNING: cc4group_uncompressGroup: the deinitCallback failed\n");
+ }
+ }
+
if(readData != NULL)
{
cc4group_applyMemoryManagementEnd(memoryManagement, readData);