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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user