1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-05 21:34:17 +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

@@ -108,7 +108,7 @@ CreateMyWidget(WMWidget *parent)
*/
mPtr->view = W_CreateView(W_VIEW(parent));
if (!mPtr->view) {
free(mPtr);
wfree(mPtr);
return NULL;
}
/* always do this */
@@ -200,7 +200,7 @@ SetMyWidgetText(MyWidget *mPtr, char *text)
CHECK_CLASS(mPtr, myWidgetClass);
if (mPtr->text)
free(mPtr->text);
wfree(mPtr->text);
mPtr->text = wstrdup(text);
@@ -219,9 +219,9 @@ destroyMyWidget(_MyWidget *mPtr)
*/
if (mPtr->text)
free(mPtr->text);
wfree(mPtr->text);
free(mPtr);
wfree(mPtr);
}