zrle: Unref result in destroy

pull/80/head
Andri Yngvason 2022-10-30 13:53:10 +00:00
parent b525608a06
commit 73e1089f06
1 changed files with 2 additions and 0 deletions

View File

@ -414,6 +414,8 @@ static void zrle_encoder_destroy(struct encoder* encoder)
deflateEnd(&self->zs); deflateEnd(&self->zs);
if (self->work) if (self->work)
aml_unref(self->work); aml_unref(self->work);
if (self->current_result)
rcbuf_unref(self->current_result);
free(self); free(self);
} }