diff options
Diffstat (limited to 'components/gfx/font_cache_thread.rs')
-rw-r--r-- | components/gfx/font_cache_thread.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/gfx/font_cache_thread.rs b/components/gfx/font_cache_thread.rs index 055216a948d..26fcd6b98b7 100644 --- a/components/gfx/font_cache_thread.rs +++ b/components/gfx/font_cache_thread.rs @@ -96,8 +96,9 @@ impl FontTemplates { } } - let template = FontTemplate::new(identifier, maybe_data); - self.templates.push(template); + if let Ok(template) = FontTemplate::new(identifier, maybe_data) { + self.templates.push(template); + } } } |