This fixes drop_action_unregister() to not call g_object_get_data()
on priv->stage if not yet resolved. This can happen if the action's
actor was destroyed before ever being mapped.
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;