From 2433b9046f85bbcd555ef3fe3bc602b1aeb9d16a Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Wed, 17 Nov 2021 07:42:10 +0100 Subject: Eliminate a Wayland-specific warning The handling seems to be a bit convoluted there. --- liblogdiag/ld-diagram-view.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/liblogdiag/ld-diagram-view.c b/liblogdiag/ld-diagram-view.c index e5d6a52..7f72c7e 100644 --- a/liblogdiag/ld-diagram-view.c +++ b/liblogdiag/ld-diagram-view.c @@ -2591,7 +2591,9 @@ on_drag_motion (GtkWidget *widget, GdkDragContext *drag_ctx, /* Discard leftovers from any previous unsuccessful drag. */ if (self->priv->dnd_left) { - g_object_unref (self->priv->dnd_symbol); + /* The Wayland backend does a leave-drop-leave sequence. */ + if (self->priv->dnd_symbol) + g_object_unref (self->priv->dnd_symbol); self->priv->dnd_symbol = NULL; self->priv->dnd_left = FALSE; } -- cgit v1.2.3-70-g09d2