1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-13 04:15:50 +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

@@ -55,7 +55,7 @@ WMCreateLabel(WMWidget *parent)
lPtr->view = W_CreateView(W_VIEW(parent));
if (!lPtr->view) {
free(lPtr);
wfree(lPtr);
return NULL;
}
lPtr->view->self = lPtr;
@@ -132,7 +132,7 @@ void
WMSetLabelText(WMLabel *lPtr, char *text)
{
if (lPtr->caption)
free(lPtr->caption);
wfree(lPtr->caption);
if (text!=NULL) {
lPtr->caption = wstrdup(text);
@@ -230,7 +230,7 @@ destroyLabel(Label *lPtr)
WMReleaseColor(lPtr->textColor);
if (lPtr->caption)
free(lPtr->caption);
wfree(lPtr->caption);
if (lPtr->font)
WMReleaseFont(lPtr->font);
@@ -238,5 +238,5 @@ destroyLabel(Label *lPtr)
if (lPtr->image)
WMReleasePixmap(lPtr->image);
free(lPtr);
wfree(lPtr);
}