We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b09a2e commit a9f22e7Copy full SHA for a9f22e7
libmisc/ev-page-action-widget.c
@@ -243,8 +243,10 @@ ev_page_action_widget_finalize (GObject *object)
243
244
if (action_widget->doc_model != NULL) {
245
if (action_widget->signal_id > 0) {
246
- g_signal_handler_disconnect (action_widget->doc_model,
247
- action_widget->signal_id);
+ if (g_signal_handler_is_connected(action_widget->doc_model,
+ action_widget->signal_id))
248
+ g_signal_handler_disconnect (action_widget->doc_model,
249
+ action_widget->signal_id);
250
action_widget->signal_id = 0;
251
}
252
g_object_remove_weak_pointer (G_OBJECT (action_widget->doc_model),
0 commit comments