Commit 876f1e9e authored by Moritz Lipp's avatar Moritz Lipp
Browse files

Implemented djvu_document_free

parent f8aa8773
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment