Mercurial > hg > xemacs-beta
comparison src/redisplay-gtk.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 | dbd2a866e38a |
children | a4322ac49e37 |
comparison
equal
deleted
inserted
replaced
3478:222e933cef23 | 3479:2b84dd8eb906 |
---|---|
291 gtk_output_display_block (struct window *w, struct display_line *dl, int block, | 291 gtk_output_display_block (struct window *w, struct display_line *dl, int block, |
292 int start, int end, int start_pixpos, int cursor_start, | 292 int start, int end, int start_pixpos, int cursor_start, |
293 int cursor_width, int cursor_height) | 293 int cursor_width, int cursor_height) |
294 { | 294 { |
295 struct frame *f = XFRAME (w->frame); | 295 struct frame *f = XFRAME (w->frame); |
296 Ichar_dynarr *buf = Dynarr_new (Ichar); | 296 Ichar_dynarr *buf; |
297 Lisp_Object window; | 297 Lisp_Object window; |
298 | 298 |
299 struct display_block *db = Dynarr_atp (dl->display_blocks, block); | 299 struct display_block *db = Dynarr_atp (dl->display_blocks, block); |
300 rune_dynarr *rba = db->runes; | 300 rune_dynarr *rba = db->runes; |
301 struct rune *rb; | 301 struct rune *rb; |
323 charset = ichar_charset (rb->object.chr.ch); | 323 charset = ichar_charset (rb->object.chr.ch); |
324 } | 324 } |
325 | 325 |
326 if (end < 0) | 326 if (end < 0) |
327 end = Dynarr_length (rba); | 327 end = Dynarr_length (rba); |
328 Dynarr_reset (buf); | 328 buf = Dynarr_new (Ichar); |
329 | 329 |
330 while (elt < end) | 330 while (elt < end) |
331 { | 331 { |
332 rb = Dynarr_atp (rba, elt); | 332 rb = Dynarr_atp (rba, elt); |
333 | 333 |