If the variable is DIMmed locally then the variable will be destroyed and thus the object released. However, I do consider it best practices to force the objects destroyed as in
code:
function example()
dim $objTest

$objTest=createobject('Kixtart.Form')
; do stuff
$objTest = 0
exit @ERROR
endfunction

_________________________
There are two types of vessels, submarines and targets.