mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 18:32:55 +00:00
free decompressor earlier in qUncompress()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
2e65f45d8e
commit
5a42c98676
1 changed files with 1 additions and 2 deletions
|
@ -412,6 +412,7 @@ QByteArray qUncompress(const char* data, int nbytes)
|
|||
break;
|
||||
}
|
||||
}
|
||||
libdeflate_free_decompressor(decomp);
|
||||
|
||||
switch (decompresult) {
|
||||
case LIBDEFLATE_SUCCESS: {
|
||||
|
@ -424,8 +425,6 @@ QByteArray qUncompress(const char* data, int nbytes)
|
|||
break;
|
||||
}
|
||||
}
|
||||
libdeflate_free_decompressor(decomp);
|
||||
|
||||
return result;
|
||||
}
|
||||
#endif // QT_NO_COMPRESS
|
||||
|
|
Loading…
Add table
Reference in a new issue