diff --git a/ChangeLog b/ChangeLog index 65421cca..195bdf8a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -71,6 +71,8 @@ Changes since version 0.80.2: - Fixed small memory leak in WINGs' font panel code. - Fixed memory leak in WINGs' file panel code. - Updated Bulgarian translations (Anton Zinoviev ) +- Fixed a bug in WINGs' hashtable which free'd the wrong memory in the + WMResetHashTable() function (possible source of SIGSEGVs) Changes since version 0.80.1: diff --git a/WINGs/ChangeLog b/WINGs/ChangeLog index ba090fdc..7f8d54d1 100644 --- a/WINGs/ChangeLog +++ b/WINGs/ChangeLog @@ -266,7 +266,8 @@ changes since wmaker 0.62.1: as a result the shaded windows didn't go away when closed. The non-shaded windows were unmapped on close but not destroyed either so they only apparently went away, but continued to use memory). - +- Fixed a bug in the hashtable code which free'd the whole item instead of + just the item key in WMResetHashTable() (possible source of SIGSEGVs) changes since wmaker 0.62.0: diff --git a/WINGs/hashtable.c b/WINGs/hashtable.c index e8527496..39d0ae75 100644 --- a/WINGs/hashtable.c +++ b/WINGs/hashtable.c @@ -148,7 +148,7 @@ WMResetHashTable(WMHashTable *table) item = table->table[i]; while (item) { tmp = item->next; - RELKEY(table, item); + RELKEY(table, item->key); wfree(item); item = tmp; }