screen: don't use unreffed pointer

This commit is contained in:
Lionel Landwerlin 2012-03-07 21:32:34 +00:00 committed by Lionel Landwerlin
parent 53364f986c
commit 78dc480e86

View File

@ -1492,7 +1492,7 @@ meta_screen_remove_workspace (MetaScreen *screen, MetaWorkspace *workspace,
/* If deleting a workspace before the current workspace, the active /* If deleting a workspace before the current workspace, the active
* workspace index changes, so we need to update that hint */ * workspace index changes, so we need to update that hint */
if (active_index_changed) if (active_index_changed)
meta_screen_set_active_workspace_hint (workspace->screen); meta_screen_set_active_workspace_hint (screen);
l = next; l = next;
while (l) while (l)