gen2brain / go-fitz

Golang wrapper for the MuPDF Fitz library
GNU Affero General Public License v3.0
412 stars 96 forks source link

Update fitz.go #67

Closed EdwardShen125 closed 1 year ago

EdwardShen125 commented 1 year ago

fix memory leakage

gen2brain commented 1 year ago

@HaywardShen Can you please change C.free(unsafe.Pointer(pixels)) with fz_drop_pixmap? There is already a dedicated function for that. Thanks.

gen2brain commented 1 year ago

Ahh, sorry, it is pixels, not pixmap.

gen2brain commented 1 year ago

Merged, thanks!

EdwardShen125 commented 1 year ago

It would be great to help!