Skip to content

plugins/default: Fix NULL unref in kill_switch_workspace

Erik Massop requested to merge (removed):null-unref into main

Since the completion callback (on_switch_workspace_effect_complete) sets priv->tml_switch_workspace1 to NULL, prior to this change the g_object_unref was trying to unref NULL, and the reffed ClutterTimeline was not getting unreffed.

This could be triggered by rapidly switching workspaces, switching again before the animation of the initial switch was done.

Found while working on #2038 (closed).

Merge request reports