Mouse memory leak bug