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

Change-Id: Idb9c327298a827540f51ccba94b067ec4fa2a3e2