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
commit7b70cfc35c8555eda186fd0b792f013a4b082cff (patch)
tree48adef9d53131aaf3f5a0f96adb7311d5a3e144a /media
parent09d88b00dbd0a04ed45a661590cca49d6e5b42f5 (diff)
parent2d6d6e9a3d569eda4555c4eb68cec452be958bb1 (diff)
downloadframeworks_av-7b70cfc35c8555eda186fd0b792f013a4b082cff.zip
frameworks_av-7b70cfc35c8555eda186fd0b792f013a4b082cff.tar.gz
frameworks_av-7b70cfc35c8555eda186fd0b792f013a4b082cff.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);
}