mirror of
https://gitlab.gnome.org/GNOME/evince
synced 2024-07-02 15:48:59 +00:00
ev-view.c: fix crash when hovering links
Small oversight from the refactor in commit 33b251b6
which removed the "set to null" but forgot to
change the g_object_unref() for the g_clear_object()
call.
Bisected by Germán Poo-Caamaño.
Closes #1933
This commit is contained in:
parent
6b53178956
commit
10f4562e57
|
@ -5356,7 +5356,7 @@ static void
|
|||
ev_view_link_preview_popover_cleanup (EvView *view) {
|
||||
if (view->link_preview.job) {
|
||||
ev_job_cancel (view->link_preview.job);
|
||||
g_object_unref (view->link_preview.job);
|
||||
g_clear_object (&view->link_preview.job);
|
||||
}
|
||||
|
||||
g_clear_pointer (&view->link_preview.popover, gtk_widget_destroy);
|
||||
|
|
Loading…
Reference in New Issue
Block a user