mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-27 18:35:52 +01:00
replaced free() with wfree() everywhere
fixed bug in wlist that caused colorpanel to crash
This commit is contained in:
@@ -61,7 +61,7 @@ W_CreateBalloon(WMScreen *scr)
|
||||
|
||||
bPtr->view = W_CreateTopView(scr);
|
||||
if (!bPtr->view) {
|
||||
free(bPtr);
|
||||
wfree(bPtr);
|
||||
return NULL;
|
||||
}
|
||||
bPtr->view->self = bPtr;
|
||||
@@ -110,7 +110,7 @@ WMSetBalloonTextForView(char *text, WMView *view)
|
||||
}
|
||||
|
||||
if (oldText) {
|
||||
free(oldText);
|
||||
wfree(oldText);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -466,7 +466,7 @@ destroyBalloon(Balloon *bPtr)
|
||||
e = WMEnumerateHashTable(bPtr->table);
|
||||
|
||||
while ((str = WMNextHashEnumeratorItem(&e))) {
|
||||
free(str);
|
||||
wfree(str);
|
||||
}
|
||||
WMFreeHashTable(bPtr->table);
|
||||
|
||||
@@ -476,5 +476,5 @@ destroyBalloon(Balloon *bPtr)
|
||||
if (bPtr->font)
|
||||
WMReleaseFont(bPtr->font);
|
||||
|
||||
free(bPtr);
|
||||
wfree(bPtr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user