Prevent memory leak.