mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-04 21:04:18 +01:00
replaced free() with wfree() everywhere
fixed bug in wlist that caused colorpanel to crash
This commit is contained in:
@@ -370,7 +370,7 @@ destroyView(W_View *view)
|
||||
if (info) {
|
||||
if (info->toplevel==view) {
|
||||
view->screen->focusInfo = info->next;
|
||||
free(info);
|
||||
wfree(info);
|
||||
} else {
|
||||
while (info->next) {
|
||||
if (info->next->toplevel == view)
|
||||
@@ -379,7 +379,7 @@ destroyView(W_View *view)
|
||||
}
|
||||
if (info->next) {
|
||||
W_FocusInfo *next = info->next->next;
|
||||
free(info->next);
|
||||
wfree(info->next);
|
||||
info->next = next;
|
||||
}
|
||||
/* else the toplevel did not have any focused subview */
|
||||
@@ -416,12 +416,12 @@ destroyView(W_View *view)
|
||||
W_CleanUpEvents(view);
|
||||
#if 0
|
||||
if (view->dragSourceProcs)
|
||||
free(view->dragSourceProcs);
|
||||
wfree(view->dragSourceProcs);
|
||||
|
||||
if (view->dragDestinationProcs)
|
||||
free(view->dragDestinationProcs);
|
||||
wfree(view->dragDestinationProcs);
|
||||
#endif
|
||||
free(view);
|
||||
wfree(view);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user