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

Commit f9fdac40 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix some memory leakage" am: d52e734a am: 2749aef8 am: 89c1c09e...

Merge "Fix some memory leakage" am: d52e734a am: 2749aef8 am: 89c1c09e am: 26da680d am: 099616a9

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2117036



Change-Id: I0355067329e5d476d31be45dff3d00f7f13bd889
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 2def5ff0 099616a9
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -3181,8 +3181,11 @@ final public class MediaCodec {
                mValid = false;
                mNativeContext = 0;
            }

            if (!mInternal) {
                sPool.offer(this);
            }
        }

        private native void native_recycle();

@@ -3245,6 +3248,7 @@ final public class MediaCodec {
            mNativeContext = context;
            mMappable = isMappable;
            mValid = (context != 0);
            mInternal = true;
        }

        private static final BlockingQueue<LinearBlock> sPool =
@@ -3255,6 +3259,7 @@ final public class MediaCodec {
        private boolean mMappable = false;
        private ByteBuffer mMapped = null;
        private long mNativeContext = 0;
        private boolean mInternal = false;
    }

    /**