Corrected memory leak (v1.0.7)