Comments (3)
Sure! Pull requests are welcome.
from mupdf-rs.
The immediate solution I see is to swap ret.inner
with a nullptr
and return the swapped-out value, but I am wondering if you would be open to a PR with a larger refactor that wraps pointers in Rc
/Arc
internally to avoid this sort of problem in the future.
from mupdf-rs.
Worked at this for a bit, only to realize that fz_keep_*
and fz_drop_*
increase/decrease existing reference counts, so adding Rust-level reference counting would be unnecessary complexity on top of that.
About to open a PR that just fixes this issue instead of refactoring everything.
from mupdf-rs.
Related Issues (20)
- Run tests with address sanitizers on CI
- Run tests with valgrind on CI
- Switch to msbuild on Windows
- How can I create an indirect reference to an object? HOT 1
- Random panics related to `malloc()` while rendering PDF to PNG HOT 10
- Is there a way to replace the outline of pdf ? HOT 1
- Segmentation fault at page.to_display_list() HOT 4
- ink annotation already usable?
- [Bug] Page number is always `0` in `Document`'s `outlines()` method HOT 1
- How to include image in `Page`'s `to_html` or `to_xhtml` method? HOT 1
- bin2coff exists with code 1, executed with invalid path HOT 3
- I can't compile mupdf-rs on Windows 11 HOT 1
- The cost of downloading and compiling libmupdf and libthirdparty is too high. It is recommended to provide precompiled versions. HOT 1
- How to use `Page`'s `to_svg` method?
- Authentication does not work as intended
- Enhance page.rs to support table extraction and title extraction
- Segmentation fault whenever multi-threading with rayon HOT 1
- InvalidData "stream did not contain valid UTF-8" error
- Memory leak when using mupdf-rs:
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mupdf-rs.