mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 14:35:59 +01:00
Implemented djvu_document_free
This commit is contained in:
parent
f8aa8773f3
commit
876f1e9ead
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue