From 3f90f816703cdd04faefa355606c1b4635e8fb04 Mon Sep 17 00:00:00 2001 From: John Reck Date: Mon, 13 Aug 2012 15:32:16 -0700 Subject: Null check Bug: 6975836 Change-Id: I085e2099d016730ba1fdcce71e0452b2026c9617 --- .../platform/graphics/android/context/GraphicsContextAndroid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.1