mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +01:00
Use proper (w)free functions for (w)malloced data.
This commit is contained in:
committed by
Carlos R. Mafra
parent
975d4becf1
commit
2755b1e45d
@@ -154,7 +154,7 @@ static WMenu *parseMenuCommand(WScreen * scr, Window win, char **slist, int coun
|
||||
if (!entry) {
|
||||
wMenuDestroy(menu, True);
|
||||
wwarning("appmenu: out of memory creating menu for window %lx", win);
|
||||
wfree(data);
|
||||
free(data);
|
||||
return NULL;
|
||||
}
|
||||
if (rtext[0] != 0)
|
||||
|
||||
Reference in New Issue
Block a user