diff options
| author | Fred Pierresteguy | 1994-02-18 22:38:14 +0000 |
|---|---|---|
| committer | Fred Pierresteguy | 1994-02-18 22:38:14 +0000 |
| commit | d2a5919f780edc508809407a7eacd5757f83c15c (patch) | |
| tree | b396a4e0f3beaebd2380b9d6518d0f5d814c6600 | |
| parent | 231ce2524126df224fc9e85b70634e693978411b (diff) | |
| download | emacs-d2a5919f780edc508809407a7eacd5757f83c15c.tar.gz emacs-d2a5919f780edc508809407a7eacd5757f83c15c.zip | |
*** empty log message ***
| -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) | |||
| 113 | 113 | ||
| 114 | static widget_value *widget_value_free_list = 0; | 114 | static widget_value *widget_value_free_list = 0; |
| 115 | static int malloc_cpt = 0; | 115 | static int malloc_cpt = 0; |
| 116 | static int malloc_cpt_id = 0; | ||
| 117 | 116 | ||
| 118 | widget_value * | 117 | widget_value * |
| 119 | malloc_widget_value () | 118 | malloc_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 | { |