Merge "camera: initialize smart pointer before usage"
This commit is contained in:
commit
8f89886dad
1 changed files with 2 additions and 1 deletions
|
@ -18,7 +18,8 @@ using android::CameraMetadata;
|
|||
CachedFrame::CachedFrame()
|
||||
: source_frame_(nullptr),
|
||||
cropped_buffer_capacity_(0),
|
||||
yu12_frame_(new AllocatedFrameBuffer(0)) {}
|
||||
yu12_frame_(new AllocatedFrameBuffer(0)),
|
||||
scaled_frame_(new AllocatedFrameBuffer(0)) {}
|
||||
|
||||
CachedFrame::~CachedFrame() { UnsetSource(); }
|
||||
|
||||
|
|
Loading…
Reference in a new issue