summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/omx/SoftOMXPlugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'media/libstagefright/omx/SoftOMXPlugin.cpp')
-rw-r--r--media/libstagefright/omx/SoftOMXPlugin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/media/libstagefright/omx/SoftOMXPlugin.cpp b/media/libstagefright/omx/SoftOMXPlugin.cpp
index cfbcb96..04ca39e 100644
--- a/media/libstagefright/omx/SoftOMXPlugin.cpp
+++ b/media/libstagefright/omx/SoftOMXPlugin.cpp
@@ -127,6 +127,8 @@ OMX_ERRORTYPE SoftOMXPlugin::destroyComponentInstance(
(SoftOMXComponent *)
((OMX_COMPONENTTYPE *)component)->pComponentPrivate;
+ me->prepareForDestruction();
+
void *libHandle = me->libHandle();
CHECK_EQ(me->getStrongCount(), 1);