summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2012-08-13 15:32:16 -0700
committerThe Android Automerger <android-build@android.com>2012-08-13 16:34:55 -0700
commit3f90f816703cdd04faefa355606c1b4635e8fb04 (patch)
tree6d1bf5c8b5c63812268fd87e61a3534ff544daa0
parent4295a88cf16d9211dc7b21df84cdaa49cd0da260 (diff)
downloadexternal_webkit-3f90f816703cdd04faefa355606c1b4635e8fb04.zip
external_webkit-3f90f816703cdd04faefa355606c1b4635e8fb04.tar.gz
external_webkit-3f90f816703cdd04faefa355606c1b4635e8fb04.tar.bz2
Null check
Bug: 6975836 Change-Id: I085e2099d016730ba1fdcce71e0452b2026c9617
-rw-r--r--Source/WebCore/platform/graphics/android/context/GraphicsContextAndroid.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/WebCore/platform/graphics/android/context/GraphicsContextAndroid.cpp b/Source/WebCore/platform/graphics/android/context/GraphicsContextAndroid.cpp
index 23b22e6..957040b 100644
--- a/Source/WebCore/platform/graphics/android/context/GraphicsContextAndroid.cpp
+++ b/Source/WebCore/platform/graphics/android/context/GraphicsContextAndroid.cpp
@@ -59,7 +59,7 @@ public:
: m_context(platformContext) { }
~GraphicsContextPlatformPrivate()
{
- if (m_context->deleteUs())
+ if (m_context && m_context->deleteUs())
delete m_context;
}