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