FINALLY got memory leaks in full transform fixed (I think)