about summary refs log tree commit diff stats
path: root/src/LYStyle.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2018-03-10 01:54:30 +0000
committerThomas E. Dickey <dickey@invisible-island.net>2018-03-10 01:54:30 +0000
commit8cffae83790c0c2537c7de1630712e87351dd582 (patch)
treeff67848ad40021e6d8481e639211efd855315b9a /src/LYStyle.c
parent82107ab8e0468191d32dfc0eb2b9e105c1a6aaff (diff)
downloadlynx-snapshots-8cffae83790c0c2537c7de1630712e87351dd582.tar.gz
snapshot of project "lynx", label v2-8-9dev_16q
Diffstat (limited to 'src/LYStyle.c')
-rw-r--r--src/LYStyle.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/LYStyle.c b/src/LYStyle.c
index 10044f7b..c73b7897 100644
--- a/src/LYStyle.c
+++ b/src/LYStyle.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: LYStyle.c,v 1.105 2018/03/08 21:05:53 tom Exp $
+ * $LynxId: LYStyle.c,v 1.109 2018/03/10 01:54:30 tom Exp $
  *
  * character level styles for Lynx
  * (c) 1996 Rob Partington -- donated to the Lyncei (if they want it :-)
@@ -426,12 +426,11 @@ static void free_lss_list(void)
 
 static void free_colorstylestuff(void)
 {
-    int i;
-
-    style_initialiseHashTable();
-    for (i = 0; i < CSHASHSIZE; i++) {
-	FREE(hashStyles[i].name);
+    if (TRACE_STYLE) {
+	report_hashStyles();
     }
+    style_initialiseHashTable();
+    free_hashStyles();
     style_deleteStyleList();
     memset(our_pairs, 0, sizeof(our_pairs));
     FreeCachedStyles();