pwmt / zathura

Document viewer
https://pwmt.org/projects/zathura
zlib License
1.87k stars 128 forks source link

Fix memory leak when selecting text - [merged] #538

Closed sebastinas closed 2 months ago

sebastinas commented 1 year ago

On GitLab by @marcoe on Jul 4, 2023, 02:49


Merges fix-memleak -> develop

zathura_page_get_selection was being called twice and we were losing the first allocated pointer.

I also added a missing g_mutex_unlock for the case when malloc fails in zathura_render_request.

sebastinas commented 1 year ago

mentioned in commit 99a9a0af371f198844b63baff29ddf9e481cc0c4