Index: Source/core/platform/text/BidiRunList.h |
diff --git a/Source/core/platform/text/BidiRunList.h b/Source/core/platform/text/BidiRunList.h |
index 269b7fc92b102307363332890348e7bc663f65df..e4d701e05271a744b64c08dac48305832b6e658a 100644 |
--- a/Source/core/platform/text/BidiRunList.h |
+++ b/Source/core/platform/text/BidiRunList.h |
@@ -167,7 +167,7 @@ void BidiRunList<Run>::replaceRunWithRuns(Run* toReplace, BidiRunList<Run>& newR |
m_logicallyLastRun = newRuns.logicallyLastRun(); |
m_runCount += newRuns.runCount() - 1; // We added the new runs and removed toReplace. |
- toReplace->destroy(); |
+ delete toReplace; |
newRuns.clearWithoutDestroyingRuns(); |
} |
@@ -189,7 +189,7 @@ void BidiRunList<Run>::deleteRuns() |
Run* curr = m_firstRun; |
while (curr) { |
Run* s = curr->next(); |
- curr->destroy(); |
+ delete curr; |
curr = s; |
} |