*fixed scale effect
*fixed some free memory problem

*almost done?

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