# HG changeset patch # User Fred Pierresteguy # Date 761611094 0 # Node ID b135bb2b4bfe034178ff78b36b9762be0da08eb9 # Parent ec2589ce0fdc428e3d8d2e25061a41a923cfed46 *** empty log message *** diff -r ec2589ce0fdc -r b135bb2b4bfe lwlib/lwlib.c --- a/lwlib/lwlib.c Fri Feb 18 20:11:20 1994 +0000 +++ b/lwlib/lwlib.c Fri Feb 18 22:38:14 1994 +0000 @@ -113,7 +113,6 @@ static widget_value *widget_value_free_list = 0; static int malloc_cpt = 0; -static int malloc_cpt_id = 0; widget_value * malloc_widget_value () @@ -144,17 +143,12 @@ if (wv->free_list) abort (); - if (malloc_cpt > 20) + if (malloc_cpt > 25) { /* When the number of already allocated cells is too big, We free it. */ - malloc_cpt_id++; free (wv); - if (malloc_cpt_id > 20) - { - malloc_cpt_id = 0; - malloc_cpt = 0; - } + malloc_cpt--; } else {