Skip to content

Commit

Permalink
MuPDF: fix possible memory leaks (#592)
Browse files Browse the repository at this point in the history
  • Loading branch information
poire-z authored and Frenzie committed Jan 30, 2018
1 parent 700dc6a commit 7841fc1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ffi/mupdf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -587,8 +587,7 @@ function page_mt.__index:draw_new(draw_context, width, height, offset_x, offset_
M.fz_gamma_pixmap(context(), pix, draw_context.gamma)
end

-- FIXME: undefined pixmap
M.fz_drop_pixmap(context(), pixmap) -- luacheck: ignore 113
M.fz_drop_pixmap(context(), pix)

return bb
end
Expand Down

0 comments on commit 7841fc1

Please sign in to comment.