[BACK]Return to screen.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/screen.c between version 1.22 and 1.23

version 1.22, 2012/03/17 21:37:36 version 1.23, 2012/07/10 11:53:01
Line 70 
Line 70 
 void  void
 screen_free(struct screen *s)  screen_free(struct screen *s)
 {  {
         if (s->tabs != NULL)          free(s->tabs);
                 xfree(s->tabs);          free(s->title);
         xfree(s->title);          free(s->ccolour);
         xfree(s->ccolour);  
         grid_destroy(s->grid);          grid_destroy(s->grid);
 }  }
   
Line 83 
Line 82 
 {  {
         u_int   i;          u_int   i;
   
         if (s->tabs != NULL)          free(s->tabs);
                 xfree(s->tabs);  
   
         if ((s->tabs = bit_alloc(screen_size_x(s))) == NULL)          if ((s->tabs = bit_alloc(screen_size_x(s))) == NULL)
                 fatal("bit_alloc failed");                  fatal("bit_alloc failed");
Line 104 
Line 102 
 void  void
 screen_set_cursor_colour(struct screen *s, const char *colour_string)  screen_set_cursor_colour(struct screen *s, const char *colour_string)
 {  {
         xfree(s->ccolour);          free(s->ccolour);
         s->ccolour = xstrdup(colour_string);          s->ccolour = xstrdup(colour_string);
 }  }
   
Line 116 
Line 114 
   
         strlcpy(tmp, title, sizeof tmp);          strlcpy(tmp, title, sizeof tmp);
   
         xfree(s->title);          free(s->title);
         s->title = xstrdup(tmp);          s->title = xstrdup(tmp);
 }  }
   

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23