Purge memory

Is there any way to purge memory to avoid cuts in the animation when using the API “accelerometer” or “enterFrame”?