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

Commit 584d6870 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

Change-Id: Iec7c6507badef8b5b53b50e242eed34f5dbfbb8a
parents 399b40b4 d8ce8e33
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());
            }
        }
    }