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 b0a156c4a17..efe0be8d100 100644 --- a/components/gfx/font_cache_thread.rs +++ b/components/gfx/font_cache_thread.rs @@ -95,8 +95,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); + } } } |