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 6bd6624..cfbcb96 100644
--- a/media/libstagefright/omx/SoftOMXPlugin.cpp
+++ b/media/libstagefright/omx/SoftOMXPlugin.cpp
@@ -21,6 +21,7 @@
#include "SoftOMXPlugin.h"
#include "include/SoftOMXComponent.h"
+#include <media/stagefright/foundation/ADebug.h>
#include <media/stagefright/foundation/AString.h>
#include <dlfcn.h>
@@ -128,6 +129,7 @@ OMX_ERRORTYPE SoftOMXPlugin::destroyComponentInstance(
void *libHandle = me->libHandle();
+ CHECK_EQ(me->getStrongCount(), 1);
me->decStrong(this);
me = NULL;