I think this will prevent a potential memory leak.