summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2012-08-09 10:36:27 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-08-09 10:36:27 -0700
commit4bab82330c9411f37d740f66b1a2ae459309f4f9 (patch)
treeb6ccd41652829a0b5af54f8f6f226665eef15c7f /Source
parentdd5962d2534b8c3cc215492c8dcf463e923f73c2 (diff)
parent28c43cfac56492d4d307386c44ab9a1121f7d3bf (diff)
downloadexternal_webkit-4bab82330c9411f37d740f66b1a2ae459309f4f9.zip
external_webkit-4bab82330c9411f37d740f66b1a2ae459309f4f9.tar.gz
external_webkit-4bab82330c9411f37d740f66b1a2ae459309f4f9.tar.bz2
am 28c43cfa: DO NOT MERGE Fix memory leak
* commit '28c43cfac56492d4d307386c44ab9a1121f7d3bf': DO NOT MERGE Fix memory leak
Diffstat (limited to 'Source')
-rw-r--r--Source/WebCore/platform/graphics/android/context/GraphicsContextAndroid.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/android/context/GraphicsContextAndroid.cpp b/Source/WebCore/platform/graphics/android/context/GraphicsContextAndroid.cpp
index f2d1400..3b93d51 100644
--- a/Source/WebCore/platform/graphics/android/context/GraphicsContextAndroid.cpp
+++ b/Source/WebCore/platform/graphics/android/context/GraphicsContextAndroid.cpp
@@ -58,6 +58,12 @@ class GraphicsContextPlatformPrivate {
public:
GraphicsContextPlatformPrivate(PlatformGraphicsContext* platformContext)
: m_context(platformContext) { }
+ ~GraphicsContextPlatformPrivate()
+ {
+ if (m_context->deleteUs())
+ delete m_context;
+ }
+
PlatformGraphicsContext* context() { return m_context; }