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

Commit 3f4b7255 authored by Greg Kaiser's avatar Greg Kaiser Committed by android-build-merger
Browse files

Merge "ndk: Avoid memory leak in failure case." into nyc-dev am: 8b9486c6

am: b14a1051

* commit 'b14a1051':
  ndk: Avoid memory leak in failure case.

Change-Id: Ic8524e0e6242553a36aea1167f41773ec146c5a3
parents ffe30812 b14a1051
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -151,6 +151,7 @@ static AMediaCodec * createAMediaCodec(const char *name, bool name_is_type, bool
            PRIORITY_FOREGROUND);
    if (res != OK) {
        ALOGE("Failed to start the looper");
        AMediaCodec_delete(mData);
        return NULL;
    }
    if (name_is_type) {