Update

Fixed several memory leaks to reduce game crashes.