Fix memory leak of captured objects