diff --git a/ft/djvu/djvu.c b/ft/djvu/djvu.c index 19a53b5..d323cde 100644 --- a/ft/djvu/djvu.c +++ b/ft/djvu/djvu.c @@ -57,6 +57,13 @@ djvu_document_free(zathura_document_t* document) return false; } + if(document->data) { + djvu_document_t* djvu_document = (djvu_document_t*) document->data; + ddjvu_context_release(djvu_document->context); + ddjvu_document_release(djvu_document->document); + free(document->data); + } + return true; }