lottie/slot: ++reliability

This commit is contained in:
Hermet Park 2024-03-06 22:41:30 +09:00 committed by Hermet Park
parent 60eec8353b
commit 5b76206540

View file

@ -302,7 +302,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);