Loading camera/CameraMetadata.cpp +2 −0 Original line number Original line Diff line number Diff line Loading @@ -528,6 +528,8 @@ status_t CameraMetadata::resizeIfNeeded(size_t extraEntries, size_t extraData) { mBuffer = allocate_camera_metadata(newEntryCount, mBuffer = allocate_camera_metadata(newEntryCount, newDataCount); newDataCount); if (mBuffer == NULL) { if (mBuffer == NULL) { // Maintain old buffer to avoid potential memory leak. mBuffer = oldBuffer; ALOGE("%s: Can't allocate larger metadata buffer", __FUNCTION__); ALOGE("%s: Can't allocate larger metadata buffer", __FUNCTION__); return NO_MEMORY; return NO_MEMORY; } } Loading Loading
camera/CameraMetadata.cpp +2 −0 Original line number Original line Diff line number Diff line Loading @@ -528,6 +528,8 @@ status_t CameraMetadata::resizeIfNeeded(size_t extraEntries, size_t extraData) { mBuffer = allocate_camera_metadata(newEntryCount, mBuffer = allocate_camera_metadata(newEntryCount, newDataCount); newDataCount); if (mBuffer == NULL) { if (mBuffer == NULL) { // Maintain old buffer to avoid potential memory leak. mBuffer = oldBuffer; ALOGE("%s: Can't allocate larger metadata buffer", __FUNCTION__); ALOGE("%s: Can't allocate larger metadata buffer", __FUNCTION__); return NO_MEMORY; return NO_MEMORY; } } Loading