diff options
author | James Dong <jdong@google.com> | 2010-02-23 18:00:23 -0800 |
---|---|---|
committer | James Dong <jdong@google.com> | 2010-02-23 18:00:23 -0800 |
commit | 3f5870ad73c5ad03d9d8396c674f6467fea86db4 (patch) | |
tree | 82359c0ae30bfa6657eda2f9e178ca6a4ce490fa | |
parent | e0eb7d4e75801c01b26b1e6fc3670cd195f48591 (diff) | |
download | omap3-3f5870ad73c5ad03d9d8396c674f6467fea86db4.tar.gz |
Fix a memory leak from OpenCore for authoring
bug - 2385066
-rw-r--r-- | omx/core_plugin/omx_core_plugin/src/ti_omx_interface.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/omx/core_plugin/omx_core_plugin/src/ti_omx_interface.cpp b/omx/core_plugin/omx_core_plugin/src/ti_omx_interface.cpp index 851c688..3c604d3 100644 --- a/omx/core_plugin/omx_core_plugin/src/ti_omx_interface.cpp +++ b/omx/core_plugin/omx_core_plugin/src/ti_omx_interface.cpp @@ -125,5 +125,12 @@ extern "C" { return TIOMXInterface::Instance(); } + + OSCL_EXPORT_REF void PVReleaseInterface(OsclSharedLibraryInterface* aInstance) + { + TIOMXInterface* instance = (TIOMXInterface*)aInstance; + if (instance) + OSCL_DELETE(instance); + } } |