CGE2: Try a different approach regarding _dim.

Now it doesn't crash the hospital scene, but I am not entirely sure it's totally leak-free...