aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Pierresteguy1994-02-18 22:38:14 +0000
committerFred Pierresteguy1994-02-18 22:38:14 +0000
commitd2a5919f780edc508809407a7eacd5757f83c15c (patch)
treeb396a4e0f3beaebd2380b9d6518d0f5d814c6600
parent231ce2524126df224fc9e85b70634e693978411b (diff)
downloademacs-d2a5919f780edc508809407a7eacd5757f83c15c.tar.gz
emacs-d2a5919f780edc508809407a7eacd5757f83c15c.zip
*** empty log message ***
-rw-r--r--lwlib/lwlib.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/lwlib/lwlib.c b/lwlib/lwlib.c
index c2f2f05cba5..1f858cbea3d 100644
--- a/lwlib/lwlib.c
+++ b/lwlib/lwlib.c
@@ -113,7 +113,6 @@ safe_free_str (s)
113 113
114static widget_value *widget_value_free_list = 0; 114static widget_value *widget_value_free_list = 0;
115static int malloc_cpt = 0; 115static int malloc_cpt = 0;
116static int malloc_cpt_id = 0;
117 116
118widget_value * 117widget_value *
119malloc_widget_value () 118malloc_widget_value ()
@@ -144,17 +143,12 @@ free_widget_value (wv)
144 if (wv->free_list) 143 if (wv->free_list)
145 abort (); 144 abort ();
146 145
147 if (malloc_cpt > 20) 146 if (malloc_cpt > 25)
148 { 147 {
149 /* When the number of already allocated cells is too big, 148 /* When the number of already allocated cells is too big,
150 We free it. */ 149 We free it. */
151 malloc_cpt_id++;
152 free (wv); 150 free (wv);
153 if (malloc_cpt_id > 20) 151 malloc_cpt--;
154 {
155 malloc_cpt_id = 0;
156 malloc_cpt = 0;
157 }
158 } 152 }
159 else 153 else
160 { 154 {