1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-04 21:04:18 +01:00

- Fixed small memory leak in the WINGs' font panel code.

- Fixed call to qsort in WMSortArray.
- Fixed a memleak in the WINGs' file panel.
This commit is contained in:
dan
2003-04-02 11:37:04 +00:00
parent 5f79f1bcde
commit f058fdf72c
36 changed files with 54 additions and 78 deletions

View File

@@ -274,7 +274,9 @@ WMCountInArray(WMArray *array, void *item)
void
WMSortArray(WMArray *array, WMCompareDataProc *comparer)
{
qsort(array->items, array->itemCount, sizeof(void*), comparer);
if (array->itemCount > 1) { /* Don't sort empty or single element arrays */
qsort(array->items, array->itemCount, sizeof(void*), comparer);
}
}