Commit 116d8bc1 authored by Caolan McNamara's avatar Caolan McNamara Committed by Carlos Garcia Campos

page-action-widget: Fix runtime warnings on exit

There's a warning on exit of evince sometimes, doc_model has been zeroed
by ev_view_accessible_finalize() already before this is called during teardown.

https://bugzilla.gnome.org/show_bug.cgi?id=774833
parent 73fedee3
......@@ -262,8 +262,10 @@ ev_page_action_widget_set_document (EvPageActionWidget *action_widget,
}
if (action_widget->signal_id > 0) {
g_signal_handler_disconnect (action_widget->doc_model,
action_widget->signal_id);
if (action_widget->doc_model != NULL) {
g_signal_handler_disconnect (action_widget->doc_model,
action_widget->signal_id);
}
action_widget->signal_id = 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment