1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-22 22:28:02 +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

@@ -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:

View File

@@ -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;

View File

@@ -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);
} }