summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--WebCore/platform/graphics/android/GraphicsContextAndroid.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/WebCore/platform/graphics/android/GraphicsContextAndroid.cpp b/WebCore/platform/graphics/android/GraphicsContextAndroid.cpp
index d999bba..b76f5d5 100644
--- a/WebCore/platform/graphics/android/GraphicsContextAndroid.cpp
+++ b/WebCore/platform/graphics/android/GraphicsContextAndroid.cpp
@@ -187,13 +187,13 @@ public:
~GraphicsContextPlatformPrivate()
{
- if (m_platformGfxCtx && m_platformGfxCtx->deleteUs())
- delete m_platformGfxCtx;
-
// We force restores so we don't leak any subobjects owned by our
// stack of State records.
while (m_stateStack.count() > 0)
this->restore();
+
+ if (m_platformGfxCtx && m_platformGfxCtx->deleteUs())
+ delete m_platformGfxCtx;
}
void save()