fixed memory leak when using .rpk files with ti99 (nw)