Fix memory leak when selecting text
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
.
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
.