mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-01 19:42:32 +01:00
- Replaced all free() with wfree() where appropriate
- Fixed some memory leaks
This commit is contained in:
@@ -68,7 +68,7 @@ addPathToList(WMList *list, int index, char *path)
|
||||
if (access(fpath, X_OK)!=0) {
|
||||
item->uflags = 1;
|
||||
}
|
||||
free(fpath);
|
||||
wfree(fpath);
|
||||
}
|
||||
|
||||
|
||||
@@ -171,7 +171,7 @@ browseForFile(WMWidget *w, void *data)
|
||||
addPathToList(lPtr, i, str);
|
||||
WMSetListBottomPosition(lPtr, WMGetListNumberOfRows(lPtr));
|
||||
|
||||
free(str);
|
||||
wfree(str);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user