diff options
author | James Dong <jdong@google.com> | 2012-02-23 12:23:57 -0800 |
---|---|---|
committer | James Dong <jdong@google.com> | 2012-02-23 14:04:20 -0800 |
commit | ca88e35764e71d2cae154591e1f163fb2ef8681c (patch) | |
tree | d1a675d0cde4f67e3dfd269c243447b571a705e6 | |
parent | 61fd70a34f17ccb4c2faf3fe22143e4e8c50ca87 (diff) | |
download | frameworks_base-ca88e35764e71d2cae154591e1f163fb2ef8681c.zip frameworks_base-ca88e35764e71d2cae154591e1f163fb2ef8681c.tar.gz frameworks_base-ca88e35764e71d2cae154591e1f163fb2ef8681c.tar.bz2 |
Fix memory leakage due to unreleased MuxOMX objects after disconnection
o related-to-bug: 5984232
Change-Id: I20cbeff6ae865e995d02342549f1e09320543740
-rw-r--r-- | media/libstagefright/OMXClient.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/media/libstagefright/OMXClient.cpp b/media/libstagefright/OMXClient.cpp index 7a805aa..7cdb793 100644 --- a/media/libstagefright/OMXClient.cpp +++ b/media/libstagefright/OMXClient.cpp @@ -335,6 +335,10 @@ status_t OMXClient::connect() { } void OMXClient::disconnect() { + if (mOMX.get() != NULL) { + mOMX.clear(); + mOMX = NULL; + } } } // namespace android |