attempt to fix memory leaks for 10.6