mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 22:43:46 +01:00
fix memory leak when selecting text
This commit is contained in:
parent
545e509a35
commit
14a02d4002
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user