mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-22 14:08:06 +01:00
Fixed a mem leak in WMList
This commit is contained in:
@@ -6,6 +6,7 @@ changes since wmaker 0.63.1:
|
|||||||
- moved WINGs headers in a WINGs subdirectory when installed.
|
- moved WINGs headers in a WINGs subdirectory when installed.
|
||||||
use #include <WINGs/header_file_name> in your application from now on.
|
use #include <WINGs/header_file_name> in your application from now on.
|
||||||
Also updated get-{wings|wutil}-flags.
|
Also updated get-{wings|wutil}-flags.
|
||||||
|
- Fixed a mem leak in WMList.
|
||||||
|
|
||||||
|
|
||||||
changes since wmaker 0.62.1:
|
changes since wmaker 0.62.1:
|
||||||
|
|||||||
@@ -121,7 +121,6 @@ typedef struct W_Array WMArray;
|
|||||||
typedef struct W_Bag WMBag;
|
typedef struct W_Bag WMBag;
|
||||||
typedef struct W_Data WMData;
|
typedef struct W_Data WMData;
|
||||||
typedef struct W_TreeNode WMTreeNode;
|
typedef struct W_TreeNode WMTreeNode;
|
||||||
typedef struct W_TreeNode WMTree;
|
|
||||||
typedef struct W_HashTable WMDictionary;
|
typedef struct W_HashTable WMDictionary;
|
||||||
typedef struct W_HashTable WMHashTable;
|
typedef struct W_HashTable WMHashTable;
|
||||||
typedef struct W_UserDefaults WMUserDefaults;
|
typedef struct W_UserDefaults WMUserDefaults;
|
||||||
|
|||||||
@@ -1217,7 +1217,11 @@ destroyList(List *lPtr)
|
|||||||
WMDeleteTimerHandler(lPtr->selectID);
|
WMDeleteTimerHandler(lPtr->selectID);
|
||||||
lPtr->selectID = NULL;
|
lPtr->selectID = NULL;
|
||||||
|
|
||||||
WMFreeArray(lPtr->items);
|
if (lPtr->selectedItems)
|
||||||
|
WMFreeArray(lPtr->selectedItems);
|
||||||
|
|
||||||
|
if (lPtr->items)
|
||||||
|
WMFreeArray(lPtr->items);
|
||||||
|
|
||||||
wfree(lPtr);
|
wfree(lPtr);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user