- Fixed some memory leaks
- 2d dynamic arrays sometimes had their first dimension freed but not second dimension content