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

Diff for /src/usr.bin/tmux/window.c between version 1.81 and 1.82

version 1.81, 2012/07/08 07:27:32 version 1.82, 2012/07/10 11:53:01
Line 179 
Line 179 
         struct window   *w = wl->window;          struct window   *w = wl->window;
   
         RB_REMOVE(winlinks, wwl, wl);          RB_REMOVE(winlinks, wwl, wl);
         if (wl->status_text != NULL)          free(wl->status_text);
                 xfree(wl->status_text);          free(wl);
         xfree(wl);  
   
         if (w != NULL) {          if (w != NULL) {
                 if (w->references == 0)                  if (w->references == 0)
Line 359 
Line 358 
   
         window_destroy_panes(w);          window_destroy_panes(w);
   
         if (w->name != NULL)          free(w->name);
                 xfree(w->name);          free(w);
         xfree(w);  
 }  }
   
 void  void
 window_set_name(struct window *w, const char *new_name)  window_set_name(struct window *w, const char *new_name)
 {  {
         if (w->name != NULL)          free(w->name);
                 xfree(w->name);  
         w->name = xstrdup(new_name);          w->name = xstrdup(new_name);
         notify_window_renamed(w);          notify_window_renamed(w);
 }  }
Line 671 
Line 668 
   
         RB_REMOVE(window_pane_tree, &all_window_panes, wp);          RB_REMOVE(window_pane_tree, &all_window_panes, wp);
   
         if (wp->cwd != NULL)          free(wp->cwd);
                 xfree(wp->cwd);          free(wp->shell);
         if (wp->shell != NULL)          free(wp->cmd);
                 xfree(wp->shell);          free(wp);
         if (wp->cmd != NULL)  
                 xfree(wp->cmd);  
         xfree(wp);  
 }  }
   
 int  int
Line 694 
Line 688 
                 close(wp->fd);                  close(wp->fd);
         }          }
         if (cmd != NULL) {          if (cmd != NULL) {
                 if (wp->cmd != NULL)                  free(wp->cmd);
                         xfree(wp->cmd);  
                 wp->cmd = xstrdup(cmd);                  wp->cmd = xstrdup(cmd);
         }          }
         if (shell != NULL) {          if (shell != NULL) {
                 if (wp->shell != NULL)                  free(wp->shell);
                         xfree(wp->shell);  
                 wp->shell = xstrdup(shell);                  wp->shell = xstrdup(shell);
         }          }
         if (cwd != NULL) {          if (cwd != NULL) {
                 if (wp->cwd != NULL)                  free(wp->cwd);
                         xfree(wp->cwd);  
                 wp->cwd = xstrdup(cwd);                  wp->cwd = xstrdup(cwd);
         }          }
   
Line 1048 
Line 1039 
                                 *lineno = i;                                  *lineno = i;
                         break;                          break;
                 }                  }
                 xfree(line);                  free(line);
         }          }
   
         xfree(newsearchstr);          free(newsearchstr);
         return (msg);          return (msg);
 }  }
   

Legend:
Removed from v.1.81  
changed lines
  Added in v.1.82