Fix preprocessor logic for CG/QT
[WebKit-https.git] / WebCore / html / HTMLCanvasElement.cpp
index 2842958cae8319100de4becef0d288825888a8fa..9f99053062e587aa3a7e535d00e640e3291746dd 100644 (file)
@@ -165,7 +165,7 @@ void HTMLCanvasElement::reset()
 
     bool hadDrawingContext = m_createdDrawingContext;
     m_createdDrawingContext = false;
-#if PLATFORM(QT)
+#if PLATFORM(CG)
     fastFree(m_data);
 #elif PLATFORM(QT)
     delete m_painter;