hwc2: Actually delete layer when removing from the layer lists

A previous implementation used shared_ptr which was subsequently
removed. Delete the layer once it's removed from the layer map
and layer set.

Change-Id: I0131358eec1f97965b0d499dd32c6a5d91c1f136
CRs-Fixed: 1033586
1 file changed