Skip to content

Commit 26e1d67

Browse files
committed
Fix memory leak related to image buffers
Fixes #136
1 parent 92e80a0 commit 26e1d67

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/libbackscrub.cc

-6
Original file line numberDiff line numberDiff line change
@@ -283,12 +283,6 @@ void bs_maskgen_delete(void *context) {
283283

284284
backscrub_ctx_t &ctx = *((backscrub_ctx_t *)context);
285285

286-
// clear all mask data
287-
ctx.ofinal.deallocate();
288-
ctx.mask.deallocate();
289-
ctx.input.deallocate();
290-
ctx.output.deallocate();
291-
292286
// drop interpreter (if present)
293287
if (ctx.interpreter != nullptr)
294288
ctx.interpreter.reset();

0 commit comments

Comments
 (0)