messense / mupdf-rs

Rust binding to mupdf
GNU Affero General Public License v3.0
96 stars 21 forks source link

Memory leak when using mupdf-rs: #90

Open RikaKit opened 1 month ago

RikaKit commented 1 month ago

After completing the work of extracting the image from the document mupdf should free up used memory, but mupdf does not release the used memory, With each image extracted, memory consumption increases.

Here is a demo code to reproduce the problem: test_mupdf_memory_leak.rs.txt