Mercurial > hg > xemacs-beta
comparison src/redisplay-msw.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 | dbf79a1732ba |
comparison
equal
deleted
inserted
replaced
3478:222e933cef23 | 3479:2b84dd8eb906 |
---|---|
905 int block, int start, int end, | 905 int block, int start, int end, |
906 int start_pixpos, int cursor_start, | 906 int start_pixpos, int cursor_start, |
907 int cursor_width, int cursor_height) | 907 int cursor_width, int cursor_height) |
908 { | 908 { |
909 struct frame *f = XFRAME (w->frame); | 909 struct frame *f = XFRAME (w->frame); |
910 Ichar_dynarr *buf = Dynarr_new (Ichar); | 910 Ichar_dynarr *buf; |
911 Lisp_Object window; | 911 Lisp_Object window; |
912 | 912 |
913 struct display_block *db = Dynarr_atp (dl->display_blocks, block); | 913 struct display_block *db = Dynarr_atp (dl->display_blocks, block); |
914 rune_dynarr *rba = db->runes; | 914 rune_dynarr *rba = db->runes; |
915 struct rune *rb; | 915 struct rune *rb; |
932 if (rb->type == RUNE_CHAR) | 932 if (rb->type == RUNE_CHAR) |
933 charset = ichar_charset (rb->object.chr.ch); | 933 charset = ichar_charset (rb->object.chr.ch); |
934 | 934 |
935 if (end < 0) | 935 if (end < 0) |
936 end = Dynarr_length (rba); | 936 end = Dynarr_length (rba); |
937 Dynarr_reset (buf); | 937 buf = Dynarr_new (Ichar); |
938 | 938 |
939 while (elt < end) | 939 while (elt < end) |
940 { | 940 { |
941 rb = Dynarr_atp (rba, elt); | 941 rb = Dynarr_atp (rba, elt); |
942 | 942 |