1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-07 22:34:18 +01:00

replaced free() with wfree() everywhere

fixed bug in wlist that caused colorpanel to crash
This commit is contained in:
kojima
1999-10-09 20:07:23 +00:00
parent 3ac51d8e32
commit 80fb09a74e
36 changed files with 272 additions and 234 deletions

View File

@@ -162,7 +162,7 @@ WMCreateWindowWithStyle(WMScreen *screen, char *name, int style)
win->view = W_CreateTopView(screen);
if (!win->view) {
free(win);
wfree(win);
return NULL;
}
win->view->self = win;
@@ -202,7 +202,7 @@ WMSetWindowTitle(WMWindow *win, char *title)
int result;
if (win->title!=NULL)
free(win->title);
wfree(win->title);
if (title!=NULL)
win->title = wstrdup(title);
else
@@ -247,7 +247,7 @@ WMSetWindowCloseAction(WMWindow *win, WMAction *action, void *clientData)
XSetWMProtocols(scr->display, win->view->window, newAtoms, count);
if (atoms)
XFree(atoms);
free(newAtoms);
wfree(newAtoms);
} else if (!action && win->closeAction) {
int i, ncount;
@@ -265,7 +265,7 @@ WMSetWindowCloseAction(WMWindow *win, WMAction *action, void *clientData)
ncount);
if (atoms)
XFree(atoms);
free(newAtoms);
wfree(newAtoms);
}
}
}
@@ -580,7 +580,7 @@ WMSetWindowMiniwindowTitle(WMWindow *win, char *title)
if ((win->miniTitle && !title) || (!win->miniTitle && title)
|| (title && win->miniTitle && strcoll(title, win->miniTitle)!=0)) {
if (win->miniTitle)
free(win->miniTitle);
wfree(win->miniTitle);
if (title)
win->miniTitle = wstrdup(title);
@@ -703,11 +703,11 @@ destroyWindow(_Window *win)
}
if (win->title) {
free(win->title);
wfree(win->title);
}
if (win->miniTitle) {
free(win->miniTitle);
wfree(win->miniTitle);
}
if (win->miniImage) {
@@ -715,9 +715,9 @@ destroyWindow(_Window *win)
}
if (win->wname)
free(win->wname);
wfree(win->wname);
free(win);
wfree(win);
}