-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
don't trust Lua GC with MuPDFs objects
Use explicit fz_free_.../fz_drop_... for MuPDF objects instead of registering a function that would do so upon garbage collection. Garbage collection can't really be relied upon - especially, since Lua doesn't really know how much memory the MuPDF objects claim and would only use the footprint of a pointer for calculation.
- Loading branch information
Showing
1 changed file
with
29 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters