commit | 1fecb9d14cef924bee613552dcdf6d7377a527f1 | [log] [tgz] |
---|---|---|
author | bohu <bohu@google.com> | Fri Apr 30 09:11:42 2021 -0700 |
committer | bohu <bohu@google.com> | Fri Apr 30 09:18:58 2021 -0700 |
tree | 15feed879200c39d0cddbce4abcac00b0ce154a2 | |
parent | c8b1c26b3b10b0807bcde2f6e9ede5b6248f412a [diff] |
c2-codecs: fixes memory slot leak aosp/1691546 resets context without returnning memory slot, causing it to run out and later decoders cannot get one. This CL fixes that leak with some refactoring: changed deleteDecoder to deleteContext and use it instead of just calling mContext.reset() (this does not return memory slot) Bug: 186770394 Bug: 186018470 Change-Id: I1c4ee384e8460df506c8179e18507636651cd3d6