Merge branch 'fix-memleak' into 'develop'

Fix memory leak when selecting text

See merge request pwmt/zathura!76
This commit is contained in:
Sebastian Ramacher 2023-07-04 08:32:35 +02:00
commit 99a9a0af37
2 changed files with 1 additions and 1 deletions

View file

@ -1086,7 +1086,6 @@ cb_zathura_page_widget_motion_notify(GtkWidget* widget, GdkEventMotion* event)
y2 = tmp.y1;
}
zathura_rectangle_t redraw_bounds = {0, y1, page_width, y2};
priv->selection.list = zathura_page_get_selection(priv->page, scaled_mouse_selection, NULL);
priv->selection.list = zathura_page_get_selection(priv->page, scaled_mouse_selection, NULL);
if (priv->selection.list != NULL && girara_list_size(priv->selection.list) != 0) {

View file

@ -449,6 +449,7 @@ zathura_render_request(ZathuraRenderRequest* request, gint64 last_view_time)
render_job_t* job = g_try_malloc0(sizeof(render_job_t));
if (job == NULL) {
g_mutex_unlock(&request_priv->jobs_mutex);
return;
}