mm: fix memory management & CM CAMERA FIX (googyanas)