mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 20:14:37 +00:00
tvg_loader: fixed a wrong delete call.
delete is not expected here, malloc-free must be paired.
This commit is contained in:
parent
dee32053c6
commit
37e8011325
1 changed files with 1 additions and 1 deletions
|
@ -214,7 +214,7 @@ void TvgLoader::run(unsigned tid)
|
|||
if (compressed) {
|
||||
data = (char*) lzwDecode((uint8_t*) data, compressedSize, compressedSizeBits, uncompressedSize);
|
||||
root = interpreter->run(data, data + uncompressedSize);
|
||||
delete(data);
|
||||
free(data);
|
||||
} else {
|
||||
root = interpreter->run(data, this->data + size);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue