Fix memory leak.
Camera instance should be held in local device object.
Fix memory leak.