[Impeller] Don't create a redundant typography context. (#163513)

This was a typo that caused a typography context to be created, its
validity checked, but the context not actually used. Instead returning a
new one.

No change in functionality.
This commit is contained in:
Chinmay Garde
2025-02-18 11:05:10 -08:00
committed by GitHub
parent 9fc779960c
commit a16c447abc

View File

@@ -1264,7 +1264,7 @@ ImpellerTypographyContext ImpellerTypographyContextNew() {
VALIDATION_LOG << "Could not create typography context.";
return nullptr;
}
return Create<TypographyContext>().Leak();
return context.Leak();
}
IMPELLER_EXTERN_C