Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e32f08e9 authored by George Burgess IV's avatar George Burgess IV Committed by android-build-merger
Browse files

Merge "Fix a memory leak" am: a7dbdc85 am: d8ce8e33 am: 584d6870

am: 6bb53c04

Change-Id: I63f065aac01e743eb3a700d7b35b94312694b1e7
parents 5a7913b4 6bb53c04
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -546,8 +546,8 @@ void MediaProfiles::checkAndAddRequiredProfilesIfNecessary() {

            if (info->mHasRefProfile) {

                CamcorderProfile *profile =
                    new CamcorderProfile(
                std::unique_ptr<CamcorderProfile> profile =
                    std::make_unique<CamcorderProfile>(
                            *mCamcorderProfiles[info->mRefProfileIndex]);

                // Overwrite the quality
@@ -581,7 +581,7 @@ void MediaProfiles::checkAndAddRequiredProfilesIfNecessary() {
                        mCamcorderProfiles[info->mRefProfileIndex]->mQuality,
                        profile->mQuality, cameraId);

                mCamcorderProfiles.add(profile);
                mCamcorderProfiles.add(profile.release());
            }
        }
    }