Implemented djvu_document_free

This commit is contained in:
Moritz Lipp 2010-12-23 19:45:06 +01:00
parent f8aa8773f3
commit 876f1e9ead

View file

@ -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;
}