1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-14 21:15:50 +01:00

Fixed a mem leak in WMList

This commit is contained in:
dan
2001-01-19 01:45:29 +00:00
parent a20aebdef2
commit f9778df784
3 changed files with 6 additions and 2 deletions

View File

@@ -1217,7 +1217,11 @@ destroyList(List *lPtr)
WMDeleteTimerHandler(lPtr->selectID);
lPtr->selectID = NULL;
WMFreeArray(lPtr->items);
if (lPtr->selectedItems)
WMFreeArray(lPtr->selectedItems);
if (lPtr->items)
WMFreeArray(lPtr->items);
wfree(lPtr);
}