From f1d5a17018e7606fa0d1ac4c8ea25ca3c06c6734 Mon Sep 17 00:00:00 2001 From: Benny Baumann Date: Mon, 24 Jan 2022 22:08:12 +0100 Subject: [PATCH] Fix memory leak related to image buffers Fixes #136 --- lib/libbackscrub.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/libbackscrub.cc b/lib/libbackscrub.cc index 8590964..16deaae 100644 --- a/lib/libbackscrub.cc +++ b/lib/libbackscrub.cc @@ -283,12 +283,6 @@ void bs_maskgen_delete(void *context) { backscrub_ctx_t &ctx = *((backscrub_ctx_t *)context); - // clear all mask data - ctx.ofinal.deallocate(); - ctx.mask.deallocate(); - ctx.input.deallocate(); - ctx.output.deallocate(); - // drop interpreter (if present) if (ctx.interpreter != nullptr) ctx.interpreter.reset();