cwObjectTemplate.h : Fix bug in _objCallSetLeafValue().

This commit is contained in:
kevin 2021-11-03 11:42:06 -04:00
parent fff58a8d4c
commit 0c8fad2425

View File

@ -108,6 +108,7 @@ namespace cw
if( obj != nullptr )
{
// The object value is about to be overwritten so be sure it is deallocated first.
if( obj->type != nullptr )
obj->type->free_value(obj);
// Set the object value and type id.