mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
lottie/slot: ++reliability
This commit is contained in:
parent
60eec8353b
commit
5b76206540
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue