From cca46e6b294b227770d676b8fe312cf9b0236a64 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sun, 11 Apr 2021 21:37:25 +0200 Subject: [PATCH] Fix another use-after-free (issue #3394) Signed-off-by: Stefan Weil --- src/textord/colfind.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/textord/colfind.cpp b/src/textord/colfind.cpp index c40bf132..5b9ed760 100644 --- a/src/textord/colfind.cpp +++ b/src/textord/colfind.cpp @@ -953,7 +953,6 @@ static void ReleaseAllBlobsAndDeleteUnused(BLOBNBOX_LIST *blobs) { for (BLOBNBOX_IT blob_it(blobs); !blob_it.empty(); blob_it.forward()) { BLOBNBOX *blob = blob_it.extract(); if (blob->owner() == nullptr) { - delete blob->cblob(); delete blob; } }