diff --git a/clutter/clutter/clutter-action.c b/clutter/clutter/clutter-action.c index 9b0b7a8fb..4244721c6 100644 --- a/clutter/clutter/clutter-action.c +++ b/clutter/clutter/clutter-action.c @@ -99,7 +99,13 @@ gboolean clutter_action_handle_event (ClutterAction *action, const ClutterEvent *event) { - return CLUTTER_ACTION_GET_CLASS (action)->handle_event (action, event); + gboolean retval; + + g_object_ref (action); + retval = CLUTTER_ACTION_GET_CLASS (action)->handle_event (action, event); + g_object_unref (action); + + return retval; } void