changeset 5999:b135bb2b4bfe

*** empty log message ***
author Fred Pierresteguy <F.Pierresteguy@frcl.bull.fr>
date Fri, 18 Feb 1994 22:38:14 +0000
parents ec2589ce0fdc
children 03f32cdd842a
files lwlib/lwlib.c
diffstat 1 files changed, 2 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- 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
     {