OSDN Git Service

Fix a crash caused by the wrong destruction handling
authorTeng-Hui Zhu <ztenghui@google.com>
Fri, 11 Mar 2011 22:58:38 +0000 (14:58 -0800)
committerTeng-Hui Zhu <ztenghui@google.com>
Fri, 11 Mar 2011 23:09:00 +0000 (15:09 -0800)
commite81731463bed439d17002741ea595c5800e87854
tree49efe41aa838b888531e260fc1e95ff75a2417f1
parentcc2679391d89b57997f78365d54d99c9ae062db3
Fix a crash caused by the wrong destruction handling

The VideoLayer is ref counted, so unref at the destrutor is the right way.
Don't do a deletion.

bug: 4072630

Change-Id: I1da4ec138ef119b1d8dd7700fef36bab4df55064
WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp
WebCore/platform/graphics/android/MediaPlayerPrivateAndroid.h
WebKit/android/WebCoreSupport/MediaPlayerPrivateAndroid.cpp