kitakami-common: QCamera2: Fix memory leak when fail to open camera device.
Issue: When camera open fails, param heap buffer which was allocated in a deferred thread will not be cleaned up properly because of improper flag check in parameters deinit(). Fix: Since param heap buffer is allocated asynchronously, move the initialization flag check after deallocating param heap. CRs-Fixed: 1070448 Change-Id: I026f307c5b7501d3607c64c6b36d41eddaf0349a
Loading
Please register or sign in to comment