1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 20:38:08 +01:00

Fix wrong wfree() use

There is a bug which happens when one modifies the "Initial Workspace" in the
"Attributes..." menu. Upon saving the change wmaker segfaults.

Commit ad373ef0dd ("WindowMaker: New function wGetWorkspaceNumber")
used wfree() in variables which were not wmalloc'ed. Fix this.
This commit is contained in:
Carlos R. Mafra
2012-04-26 11:11:32 -03:00
parent 39fdb451ba
commit 4e2ee27bfa
2 changed files with 0 additions and 4 deletions

View File

@@ -543,8 +543,6 @@ void wSessionRestoreLastWorkspace(WScreen * scr)
/* Get the workspace number for the workspace name */
w = wGetWorkspaceNumber(scr, value);
wfree(value);
if (w != scr->current_workspace && w < scr->workspace_count)
wWorkspaceChange(scr, w);
}

View File

@@ -455,8 +455,6 @@ int wDefaultGetStartWorkspace(WScreen * scr, char *instance, char *class)
/* Get the workspace number for the workspace name */
w = wGetWorkspaceNumber(scr, tmp);
wfree(value);
return w;
}