Release captured reference type stack variables