Merge pull request #34241 from timothyqiu/sync-fallbacks-size-32701

Fixes crash when using DynamicFont::set_font_data
This commit is contained in:
Rémi Verschelde 2019-12-11 08:34:21 +01:00 committed by GitHub
commit ea865d0e7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -657,6 +657,7 @@ void DynamicFont::_reload_cache() {
if (!data.is_valid()) {
data_at_size.unref();
outline_data_at_size.unref();
fallbacks.resize(0);
fallback_data_at_size.resize(0);
fallback_outline_data_at_size.resize(0);
return;