Delete child object to fix memory leak