1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-04 12:54:20 +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

@@ -53,7 +53,7 @@ void
WMSetFrameTitle(WMFrame *fPtr, char *title)
{
if (fPtr->caption)
free(fPtr->caption);
wfree(fPtr->caption);
if (title)
fPtr->caption = wstrdup(title);
else
@@ -187,7 +187,7 @@ WMCreateFrame(WMWidget *parent)
fPtr->view = W_CreateView(W_VIEW(parent));
if (!fPtr->view) {
free(fPtr);
wfree(fPtr);
return NULL;
}
fPtr->view->self = fPtr;
@@ -209,7 +209,7 @@ static void
destroyFrame(Frame *fPtr)
{
if (fPtr->caption)
free(fPtr->caption);
wfree(fPtr->caption);
free(fPtr);
wfree(fPtr);
}