diff options
author | Fred Pierresteguy <F.Pierresteguy@frcl.bull.fr> | 1994-02-18 22:38:14 +0000 |
---|---|---|
committer | Fred Pierresteguy <F.Pierresteguy@frcl.bull.fr> | 1994-02-18 22:38:14 +0000 |
commit | d2a5919f780edc508809407a7eacd5757f83c15c (patch) | |
tree | b396a4e0f3beaebd2380b9d6518d0f5d814c6600 /lwlib/lwlib.c | |
parent | 231ce2524126df224fc9e85b70634e693978411b (diff) | |
download | emacs-d2a5919f780edc508809407a7eacd5757f83c15c.tar.gz |
*** empty log message ***
Diffstat (limited to 'lwlib/lwlib.c')
-rw-r--r-- | lwlib/lwlib.c | 10 |
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 { |