lottie: hotfix a crash

Fixed a mistake during the code merge.

issue: https://github.com/thorvg/thorvg/issues/2733
This commit is contained in:
Hermet Park 2024-10-12 12:40:23 +09:00
parent c9960fcc93
commit 066160a82a

View file

@ -192,6 +192,8 @@ bool LottieLoader::open(const char* data, uint32_t size, bool copy)
const_cast<char*>(content)[size] = '\0'; const_cast<char*>(content)[size] = '\0';
} else content = data; } else content = data;
this->dirName = strdup(".");
this->size = size; this->size = size;
this->copy = copy; this->copy = copy;