Revert "camera: fix possible memory leak"

This reverts commit 5514a1bc32ea102205be6d1d223cb2fcdd82bd3d.

Change-Id: If40a80dc5fb7eb91d4249e5c212832eb1116dbf0