From faaae04359862e49d0750592d0fc1ddf8b6d4e37 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 25 Feb 2023 12:36:57 -0700 Subject: [PATCH] [wasm-shape] Minor --- src/hb-wasm-shape.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/hb-wasm-shape.cc b/src/hb-wasm-shape.cc index 7c486fe51..6407244ca 100644 --- a/src/hb-wasm-shape.cc +++ b/src/hb-wasm-shape.cc @@ -185,7 +185,7 @@ acquire_shape_plan (hb_face_t *face, if (unlikely (!ret)) { DEBUG_MSG (WASM, module_inst, "Calling shape_plan_create() failed: %s", - wasm_runtime_get_exception(module_inst)); + wasm_runtime_get_exception (module_inst)); goto fail; } plan->wasm_shape_planptr = results[0].of.i32; @@ -233,7 +233,7 @@ release_shape_plan (const hb_wasm_face_data_t *face_data, if (unlikely (!ret)) { DEBUG_MSG (WASM, module_inst, "Calling shape_plan_destroy() failed: %s", - wasm_runtime_get_exception(module_inst)); + wasm_runtime_get_exception (module_inst)); } } } @@ -360,6 +360,7 @@ retry: buffer->successful = true; retried = true; release_shape_plan (face_data, plan); + plan = nullptr; goto retry; }