fix bug: move jerry_make_api_unavailable into the end of jerry_cleanup
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang zidong.jiang@intel.com
This commit is contained in:
+1
-1
@@ -187,9 +187,9 @@ jerry_cleanup (void)
|
||||
{
|
||||
jerry_assert_api_available ();
|
||||
|
||||
jerry_make_api_unavailable ();
|
||||
ecma_finalize ();
|
||||
jmem_finalize ();
|
||||
jerry_make_api_unavailable ();
|
||||
} /* jerry_cleanup */
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user