lottie: safety++

Prevents a crash when the font family in the text document
does not match any font in the provided font list.
This commit is contained in:
Mira Grudzinska 2025-04-10 20:55:23 +02:00 committed by Hermet Park
parent 55c0849746
commit ee8eebfef8

View file

@ -391,7 +391,7 @@ struct LottieText : LottieObject, LottieRenderPooler<tvg::Shape>
} }
LottieTextDoc doc; LottieTextDoc doc;
LottieFont* font; LottieFont* font = nullptr;
Array<LottieTextRange*> ranges; Array<LottieTextRange*> ranges;
~LottieText() ~LottieText()