lottie/slot: ++reliability

This commit is contained in:
Hermet Park 2024-03-06 22:41:30 +09:00
parent d50eea2a2c
commit 851f8eaabc

View file

@ -298,7 +298,7 @@ Paint* LottieLoader::paint()
bool LottieLoader::override(const char* slot)
{
if (!slot) return false;
if (!slot || !comp || comp->slots.count == 0) return false;
//TODO: Crashed, does this necessary?
auto temp = strdup(slot);