Fixes crash when using DynamicFont::set_font_data

This commit is contained in:
Haoyu Qiu 2019-12-10 21:26:42 +08:00
parent c868baf658
commit 5deb6497a1
1 changed files with 1 additions and 0 deletions

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;