Implementing object model, memory allocators finalization routines. Adding assertion that all memory was freed before exit.
This commit is contained in:
@@ -77,6 +77,19 @@ ecma_op_create_global_object( void)
|
||||
return glob_obj_p;
|
||||
} /* ecma_op_create_global_object */
|
||||
|
||||
/**
|
||||
* Remove global reference to the global object.
|
||||
*
|
||||
* Warning:
|
||||
* the routine should be called only from ecma_finalize
|
||||
*/
|
||||
void
|
||||
ecma_finalize_global_object(void)
|
||||
{
|
||||
ecma_deref_object( ecma_global_object_p);
|
||||
ecma_global_object_p = NULL;
|
||||
} /* ecma_free_global_object */
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
|
||||
Reference in New Issue
Block a user