mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 03:10:09 +00:00
gtkclipboard: Fix a potential g_signal_handler_disconnect(NULL) call
Found by scan-build. https://bugzilla.gnome.org/show_bug.cgi?id=712760
This commit is contained in:
parent
af36220bca
commit
f8eac08a0a
@ -286,7 +286,7 @@ gtk_clipboard_finalize (GObject *object)
|
||||
if (clipboard->store_timeout != 0)
|
||||
g_source_remove (clipboard->store_timeout);
|
||||
|
||||
if (clipboard->notify_signal_id != 0)
|
||||
if (clipboard_widget != NULL && clipboard->notify_signal_id != 0)
|
||||
g_signal_handler_disconnect (clipboard_widget, clipboard->notify_signal_id);
|
||||
|
||||
g_free (clipboard->storable_targets);
|
||||
|
Loading…
Reference in New Issue
Block a user