mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-28 06:56:00 +01:00
Merge branch 'fix-memleak' into 'develop'
Fix memory leak when selecting text See merge request pwmt/zathura!76
This commit is contained in:
commit
99a9a0af37
2 changed files with 1 additions and 1 deletions
|
@ -1086,7 +1086,6 @@ cb_zathura_page_widget_motion_notify(GtkWidget* widget, GdkEventMotion* event)
|
||||||
y2 = tmp.y1;
|
y2 = tmp.y1;
|
||||||
}
|
}
|
||||||
zathura_rectangle_t redraw_bounds = {0, y1, page_width, y2};
|
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);
|
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) {
|
if (priv->selection.list != NULL && girara_list_size(priv->selection.list) != 0) {
|
||||||
|
|
|
@ -449,6 +449,7 @@ zathura_render_request(ZathuraRenderRequest* request, gint64 last_view_time)
|
||||||
|
|
||||||
render_job_t* job = g_try_malloc0(sizeof(render_job_t));
|
render_job_t* job = g_try_malloc0(sizeof(render_job_t));
|
||||||
if (job == NULL) {
|
if (job == NULL) {
|
||||||
|
g_mutex_unlock(&request_priv->jobs_mutex);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue