Feature: Fix memory leak when recording a video log
This commit is contained in:
parent
eeb52e4027
commit
056f53ff4a
@ -417,6 +417,7 @@ static void _compress(struct VFile* dest, struct VFile* src) {
|
|||||||
}
|
}
|
||||||
dest->write(dest, compressBuffer, sizeof(compressBuffer) - zstr.avail_out);
|
dest->write(dest, compressBuffer, sizeof(compressBuffer) - zstr.avail_out);
|
||||||
} while (sizeof(compressBuffer) - zstr.avail_out);
|
} while (sizeof(compressBuffer) - zstr.avail_out);
|
||||||
|
deflateEnd(&zstr);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool _decompress(struct VFile* dest, struct VFile* src, size_t compressedLength) {
|
static bool _decompress(struct VFile* dest, struct VFile* src, size_t compressedLength) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user