diff options
author | Andreas Huber <andih@google.com> | 2009-10-22 08:42:19 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2009-10-22 08:45:28 -0700 |
commit | 2d6d6e9a3d569eda4555c4eb68cec452be958bb1 (patch) | |
tree | 5877a5a930884daf265b53d98041f3f527a2b734 /media/libstagefright/omx/OMXNodeInstance.cpp | |
parent | 97055951de932589b99bedb0506a3d6eca728523 (diff) | |
download | frameworks_av-2d6d6e9a3d569eda4555c4eb68cec452be958bb1.zip frameworks_av-2d6d6e9a3d569eda4555c4eb68cec452be958bb1.tar.gz frameworks_av-2d6d6e9a3d569eda4555c4eb68cec452be958bb1.tar.bz2 |
Still don't know why the heap gets corrupted, but not deleting the OMXNodeInstance appears to prevent this from happening.
Diffstat (limited to 'media/libstagefright/omx/OMXNodeInstance.cpp')
-rw-r--r-- | media/libstagefright/omx/OMXNodeInstance.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |