1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-30 02:12:30 +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

@@ -50,7 +50,7 @@ WMDeleteSelectionHandler(WMWidget *widget, Atom selection)
}
selHandlers = tmp->next;
timestamp = tmp->timestamp;
free(tmp);
wfree(tmp);
} else {
while (tmp->next) {
if (tmp->next->widget == widget) {
@@ -62,7 +62,7 @@ WMDeleteSelectionHandler(WMWidget *widget, Atom selection)
handler = tmp->next;
tmp->next = handler->next;
timestamp = handler->timestamp;
free(handler);
wfree(handler);
break;
}
tmp = tmp->next;
@@ -188,11 +188,11 @@ W_HandleSelectionEvent(XEvent *event)
event->xselectionrequest.requestor,
prop, atom, data, length, format)) {
free(data);
wfree(data);
notifySelection(event, None);
break;
}
free(data);
wfree(data);
notifySelection(event, prop);