From: Victor Toso <me@xxxxxxxxxxxxxx> In case of failure, the GdkAtom *atoms will be set to NULL. Including this check to an early return. Signed-off-by: Victor Toso <victortoso@xxxxxxxxxx> --- src/spice-gtk-session.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/spice-gtk-session.c b/src/spice-gtk-session.c index 0426d8f..3c78e6a 100644 --- a/src/spice-gtk-session.c +++ b/src/spice-gtk-session.c @@ -604,7 +604,8 @@ static void clipboard_get_targets(GtkClipboard *clipboard, { SpiceGtkSession *self = free_weak_ref(user_data); - if (self == NULL) + + if (self == NULL || atoms == NULL) return; g_return_if_fail(SPICE_IS_GTK_SESSION(self)); -- 2.9.3 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel