Fix properties memory leaks