From 73e1089f06f1ef5900441284a5bab2f9768abdaa Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Sun, 30 Oct 2022 13:53:10 +0000 Subject: [PATCH] zrle: Unref result in destroy --- src/zrle.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/zrle.c b/src/zrle.c index e6ecd74..f3f35f3 100644 --- a/src/zrle.c +++ b/src/zrle.c @@ -414,6 +414,8 @@ static void zrle_encoder_destroy(struct encoder* encoder) deflateEnd(&self->zs); if (self->work) aml_unref(self->work); + if (self->current_result) + rcbuf_unref(self->current_result); free(self); }