| commit | 04394b1c83d56e2956ba84aa9cb4b5d3b01d8ae8 | [log] [tgz] |
|---|---|---|
| author | James Dong <jdong@google.com> | Thu Feb 23 12:23:57 2012 -0800 |
| committer | James Dong <jdong@google.com> | Thu Feb 23 14:04:20 2012 -0800 |
| tree | 00ab13a1d3e0685d84a66284148b53463823efe7 | |
| parent | e98f8c04faf27df3b1829d336299ad51dad569cf [diff] |
Fix memory leakage due to unreleased MuxOMX objects after disconnection o related-to-bug: 5984232 Change-Id: I20cbeff6ae865e995d02342549f1e09320543740
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 @@ } void OMXClient::disconnect() { + if (mOMX.get() != NULL) { + mOMX.clear(); + mOMX = NULL; + } } } // namespace android