pastebin - collaborative debugging tool
grid.kpaste.net RSS


grid.c
Posted by Anonymous on Fri 26th Feb 2016 20:30
raw | new post

  1. So basically, in tmux/grid.c - you want it to look like this:
  2.  
  3. /* Destroy grid. */
  4. void
  5. grid_destroy(struct grid *gd)
  6. {
  7.         struct grid_line        *gl;
  8.         u_int                    yy;
  9.  
  10.         for (yy = 0; yy < gd->hsize + gd->sy; yy++) {
  11.                 gl = &gd->linedata[yy];
  12.                 free(gl->celldata);
  13.         }
  14.  
  15.         free(gd->linedata);
  16.  
  17.         free(gd);
  18.         malloc_trim(0);
  19. }

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}





All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at