Merge "camera: initialize smart pointer before usage"

This commit is contained in:
Ari Hausman-Cohen 2018-10-31 18:34:16 +00:00 committed by Gerrit Code Review
commit 8f89886dad

View file

@ -18,7 +18,8 @@ using android::CameraMetadata;
CachedFrame::CachedFrame() CachedFrame::CachedFrame()
: source_frame_(nullptr), : source_frame_(nullptr),
cropped_buffer_capacity_(0), cropped_buffer_capacity_(0),
yu12_frame_(new AllocatedFrameBuffer(0)) {} yu12_frame_(new AllocatedFrameBuffer(0)),
scaled_frame_(new AllocatedFrameBuffer(0)) {}
CachedFrame::~CachedFrame() { UnsetSource(); } CachedFrame::~CachedFrame() { UnsetSource(); }