Fixing a memory leak in mouse.m and cleaning it up while I'm there.