comparison src/redisplay-x.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 d1754e7f0cea
children 98af8a976fc3
comparison
equal deleted inserted replaced
3478:222e933cef23 3479:2b84dd8eb906
430 int cursor_width, int cursor_height) 430 int cursor_width, int cursor_height)
431 { 431 {
432 #ifndef USE_XFT 432 #ifndef USE_XFT
433 struct frame *f = XFRAME (w->frame); 433 struct frame *f = XFRAME (w->frame);
434 #endif 434 #endif
435 Ichar_dynarr *buf = Dynarr_new (Ichar); 435 Ichar_dynarr *buf;
436 Lisp_Object window; 436 Lisp_Object window;
437 437
438 struct display_block *db = Dynarr_atp (dl->display_blocks, block); 438 struct display_block *db = Dynarr_atp (dl->display_blocks, block);
439 rune_dynarr *rba = db->runes; 439 rune_dynarr *rba = db->runes;
440 struct rune *rb; 440 struct rune *rb;
457 if (rb->type == RUNE_CHAR) 457 if (rb->type == RUNE_CHAR)
458 charset = ichar_charset (rb->object.chr.ch); 458 charset = ichar_charset (rb->object.chr.ch);
459 459
460 if (end < 0) 460 if (end < 0)
461 end = Dynarr_length (rba); 461 end = Dynarr_length (rba);
462 Dynarr_reset (buf); 462 buf = Dynarr_new (Ichar);
463 463
464 while (elt < end) 464 while (elt < end)
465 { 465 {
466 rb = Dynarr_atp (rba, elt); 466 rb = Dynarr_atp (rba, elt);
467 467