From 2d6d6e9a3d569eda4555c4eb68cec452be958bb1 Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Thu, 22 Oct 2009 08:42:19 -0700 Subject: Still don't know why the heap gets corrupted, but not deleting the OMXNodeInstance appears to prevent this from happening. --- media/libstagefright/omx/OMXNodeInstance.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'media/libstagefright/omx/OMXNodeInstance.cpp') diff --git a/media/libstagefright/omx/OMXNodeInstance.cpp b/media/libstagefright/omx/OMXNodeInstance.cpp index d277587..84d0d4b 100644 --- a/media/libstagefright/omx/OMXNodeInstance.cpp +++ b/media/libstagefright/omx/OMXNodeInstance.cpp @@ -120,7 +120,8 @@ status_t OMXNodeInstance::freeNode() { mNodeID = NULL; LOGI("OMXNodeInstance going away."); - delete this; + mObserver.clear(); + // delete this; // leads to heap-corruption??? return StatusFromOMXError(err); } -- cgit v1.1