dlx: camera: clean up code style

Change-Id: I36ea12bcc4d87a83bef4e3ad6a7031a86cf41ff8
dlx: camera: fix possible memory leak

Change-Id: I346d45fe6eabbf3f88ebcff91c7d21c5be026d0e