Implementing object model, memory allocators finalization routines. Adding assertion that all memory was freed before exit.

This commit is contained in:
Ruben Ayrapetyan
2014-08-07 19:24:32 +04:00
parent 5e1c4b533f
commit 99c15ef802
16 changed files with 140 additions and 20 deletions
@@ -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 */
/**
* @}
* @}