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

@@ -101,7 +101,7 @@ WMCreateTabView(WMWidget *parent)
tPtr->view = W_CreateView(W_VIEW(parent));
if (!tPtr->view) {
free(tPtr);
wfree(tPtr);
return NULL;
}
tPtr->view->self = tPtr;
@@ -529,13 +529,13 @@ destroyTabView(TabView *tPtr)
WMSetTabViewItemView(tPtr->items[i], NULL);
WMDestroyTabViewItem(tPtr->items[i]);
}
free(tPtr->items);
wfree(tPtr->items);
WMReleaseColor(tPtr->lightGray);
WMReleaseColor(tPtr->tabColor);
WMReleaseFont(tPtr->font);
free(tPtr);
wfree(tPtr);
}
/******************************************************************/
@@ -642,7 +642,7 @@ void
WMSetTabViewItemLabel(WMTabViewItem *item, char *label)
{
if (item->label)
free(item->label);
wfree(item->label);
item->label = wstrdup(label);
@@ -676,10 +676,10 @@ void
WMDestroyTabViewItem(WMTabViewItem *item)
{
if (item->label)
free(item->label);
wfree(item->label);
if (item->view)
W_DestroyView(item->view);
free(item);
wfree(item);
}