From 8b16509422d7fd7059f19f8c301b7cfd9e22e77c Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Fri, 21 May 2021 16:41:51 +0200 Subject: [PATCH] Fix wasm build --- sixtyfps_runtime/interpreter/api.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/sixtyfps_runtime/interpreter/api.rs b/sixtyfps_runtime/interpreter/api.rs index 2bf44ee6b..d5867cdaf 100644 --- a/sixtyfps_runtime/interpreter/api.rs +++ b/sixtyfps_runtime/interpreter/api.rs @@ -563,6 +563,7 @@ impl ComponentDefinition { /// Instantiate the component for wasm using the given canvas id #[cfg(target_arch = "wasm32")] pub fn create_with_canvas_id(&self, canvas_id: &str) -> ComponentInstance { + generativity::make_guard!(guard); ComponentInstance { inner: self.inner.unerase(guard).clone().create(canvas_id.into()) } }