Mercurial > hg > xemacs-beta
comparison src/redisplay-tty.c @ 3479:2b84dd8eb906
[xemacs-hg @ 2006-06-27 22:59:37 by james]
Don't leak Dynarr's in redisplay. <m3sllwwxja.fsf@jerrypc.cs.usu.edu>
author | james |
---|---|
date | Tue, 27 Jun 2006 22:59:40 +0000 |
parents | 3d8143fc88e1 |
children | f6cd5fe9bf4c |
comparison
equal
deleted
inserted
replaced
3478:222e933cef23 | 3479:2b84dd8eb906 |
---|---|
204 int start, int end, int start_pixpos, | 204 int start, int end, int start_pixpos, |
205 int cursor_start, int UNUSED (cursor_width), | 205 int cursor_start, int UNUSED (cursor_width), |
206 int UNUSED (cursor_height)) | 206 int UNUSED (cursor_height)) |
207 { | 207 { |
208 struct frame *f = XFRAME (w->frame); | 208 struct frame *f = XFRAME (w->frame); |
209 Ichar_dynarr *buf = Dynarr_new (Ichar); | 209 Ichar_dynarr *buf; |
210 | 210 |
211 struct display_block *db = Dynarr_atp (dl->display_blocks, block); | 211 struct display_block *db = Dynarr_atp (dl->display_blocks, block); |
212 rune_dynarr *rba = db->runes; | 212 rune_dynarr *rba = db->runes; |
213 struct rune *rb; | 213 struct rune *rb; |
214 | 214 |
230 } | 230 } |
231 | 231 |
232 if (end < 0) | 232 if (end < 0) |
233 end = Dynarr_length (rba); | 233 end = Dynarr_length (rba); |
234 | 234 |
235 Dynarr_reset (buf); | 235 buf = Dynarr_new (Ichar); |
236 | 236 |
237 while (elt < end && Dynarr_atp (rba, elt)->xpos < start_pixpos) | 237 while (elt < end && Dynarr_atp (rba, elt)->xpos < start_pixpos) |
238 { | 238 { |
239 elt++; | 239 elt++; |
240 findex = Dynarr_atp (rba, elt)->findex; | 240 findex = Dynarr_atp (rba, elt)->findex; |