aboutsummaryrefslogtreecommitdiff
path: root/src/Screen.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Screen.cc')
-rw-r--r--src/Screen.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Screen.cc b/src/Screen.cc
index 2cf3292..10921e0 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -877,11 +877,15 @@ int BScreen::removeLastWorkspace() {
877 877
878 //remove last workspace 878 //remove last workspace
879 m_workspaces_list.pop_back(); 879 m_workspaces_list.pop_back();
880 delete wkspc; 880
881 881
882 882
883 updateNetizenWorkspaceCount(); 883 updateNetizenWorkspaceCount();
884 saveWorkspaces(m_workspaces_list.size()); 884 saveWorkspaces(m_workspaces_list.size());
885 // must be deleted after we send notify!!
886 // so we dont get bad pointers somewhere
887 // while processing the notify signal
888 delete wkspc;
885 889
886 return m_workspaces_list.size(); 890 return m_workspaces_list.size();
887} 891}