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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user