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

Commit d52e734a authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix some memory leakage"

parents 96c64c02 dfd125dc
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -3089,8 +3089,11 @@ final public class MediaCodec {
                mValid = false;
                mNativeContext = 0;
            }

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

        private native void native_recycle();

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

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

    /**