There's no need to release *t_filename here - the AutoString class will take care of that (read_stringref gives you a reference, setfilename() will copy the reference, the MCAutoStringRef destructor will release the reference given to you by read_stringref).