diff --git a/clutter/clutter-drop-action.c b/clutter/clutter-drop-action.c index 4fec01996..8c4def2ad 100644 --- a/clutter/clutter-drop-action.c +++ b/clutter/clutter-drop-action.c @@ -276,9 +276,11 @@ static void drop_action_unregister (ClutterDropAction *self) { ClutterDropActionPrivate *priv = self->priv; - DropTarget *data; + DropTarget *data = NULL; + + if (priv->stage != NULL) + data = g_object_get_data (G_OBJECT (priv->stage), "__clutter_drop_targets"); - data = g_object_get_data (G_OBJECT (priv->stage), "__clutter_drop_targets"); if (data == NULL) return;