summaryrefslogtreecommitdiff
path: root/lwlib
diff options
context:
space:
mode:
authorFred Pierresteguy <F.Pierresteguy@frcl.bull.fr>1994-02-18 22:38:14 +0000
committerFred Pierresteguy <F.Pierresteguy@frcl.bull.fr>1994-02-18 22:38:14 +0000
commit6265ed721025150b5cff572310c6f41e1e23b7fd (patch)
treec0b9faf5c2d7da5b02a45f5d95e015fb45a85b73 /lwlib
parent2f5c1f7aa2f8900f27d7604a7aebb979e9bec02a (diff)
downloademacs-6265ed721025150b5cff572310c6f41e1e23b7fd.tar.gz
*** empty log message ***
Diffstat (limited to 'lwlib')
-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)
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 @@ free_widget_value (wv)
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
{