Index: Source/core/rendering/RenderLayerModelObject.cpp |
diff --git a/Source/core/rendering/RenderLayerModelObject.cpp b/Source/core/rendering/RenderLayerModelObject.cpp |
index d5a20c6ee0922ac4377ee80aadcad5699ab65574..7ccbdb63428abfed50c9cc9e0271b0b542e0fe60 100644 |
--- a/Source/core/rendering/RenderLayerModelObject.cpp |
+++ b/Source/core/rendering/RenderLayerModelObject.cpp |
@@ -54,7 +54,7 @@ void RenderLayerModelObject::destroyLayer() |
{ |
ASSERT(!hasLayer()); // Callers should have already called setHasLayer(false) |
ASSERT(m_layer); |
- m_layer->destroy(renderArena()); |
+ delete m_layer; |
m_layer = 0; |
} |
@@ -63,7 +63,7 @@ void RenderLayerModelObject::ensureLayer() |
if (m_layer) |
return; |
- m_layer = new (renderArena()) RenderLayer(this); |
+ m_layer = new RenderLayer(this); |
setHasLayer(true); |
m_layer->insertOnlyThisLayer(); |
} |