ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/screen.C
(Generate patch)

Comparing rxvt-unicode/src/screen.C (file contents):
Revision 1.421 by sf-exg, Sun Jun 10 13:07:56 2012 UTC vs.
Revision 1.422 by root, Thu Jun 28 15:19:15 2012 UTC

169 tsize -= tsize % sizeof (rend_t); 169 tsize -= tsize % sizeof (rend_t);
170 170
171 int all_rows = total_rows + nrow + nrow; 171 int all_rows = total_rows + nrow + nrow;
172 172
173 chunk_size = (sizeof (line_t) + rsize + tsize) * all_rows; 173 chunk_size = (sizeof (line_t) + rsize + tsize) * all_rows;
174 chunk = rxvt_malloc (chunk_size); 174 chunk = chunk_alloc (chunk_size, 0);
175 175
176 char *base = (char *)chunk + sizeof (line_t) * all_rows; 176 char *base = (char *)chunk + sizeof (line_t) * all_rows;
177 177
178 for (int row = 0; row < all_rows; ++row) 178 for (int row = 0; row < all_rows; ++row)
179 { 179 {
429} 429}
430 430
431void ecb_cold 431void ecb_cold
432rxvt_term::scr_release () NOTHROW 432rxvt_term::scr_release () NOTHROW
433{ 433{
434 free (chunk); chunk = 0; row_buf = 0; 434 chunk_free (chunk, chunk_size);
435 free (tabs); tabs = 0; 435 chunk = 0;
436 row_buf = 0;
437
438 free (tabs);
439 tabs = 0;
436} 440}
437 441
438/* ------------------------------------------------------------------------- */ 442/* ------------------------------------------------------------------------- */
439/* 443/*
440 * Hard/Soft reset 444 * Hard/Soft reset

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines