- 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 committed 2003-04-02 11:37:04 +00:00
1 parent 5f79f1bcde
commit f058fdf72c
36 files changed
+54 -78

No files matched your search

+3 -1
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);
}
}