*fixed some free memory problem

git-svn-id: https://mameplus.svn.sourceforge.net/svnroot/mameplus/trunk/mamep@5136 e0215e0a-1e64-f442-9f1d-d2f61a7f4648