summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-10-23 11:34:38 -0400
committerAndroid (Google) Code Review <android-gerrit@google.com>2009-10-23 11:34:38 -0400
commit1f64ffe2e486b5a0d0c77487bdb612ee46ed7ead (patch)
treedea40303360d305af91123886ccbad5dc67dcad2 /media
parent470687e251ecb298bda17f3e3978ffeaf05622a9 (diff)
parentcb64cd2c3f3fefda0bc6ab16618f8223ccc2e78d (diff)
downloadframeworks_base-1f64ffe2e486b5a0d0c77487bdb612ee46ed7ead.zip
frameworks_base-1f64ffe2e486b5a0d0c77487bdb612ee46ed7ead.tar.gz
frameworks_base-1f64ffe2e486b5a0d0c77487bdb612ee46ed7ead.tar.bz2
Merge change Icb64cd2c into eclair-mr2
* changes: Still don't know why the heap gets corrupted, but not deleting the OMXNodeInstance appears to prevent this from happening.
Diffstat (limited to 'media')
-rw-r--r--media/libstagefright/omx/OMXNodeInstance.cpp3
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);
}