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

Diff for /src/usr.bin/tmux/server-client.c between version 1.76 and 1.77

version 1.76, 2012/06/20 12:55:55 version 1.77, 2012/07/10 11:53:01
Line 23 
Line 23 
 #include <string.h>  #include <string.h>
 #include <time.h>  #include <time.h>
 #include <paths.h>  #include <paths.h>
   #include <stdlib.h>
 #include <unistd.h>  #include <unistd.h>
   
 #include "tmux.h"  #include "tmux.h"
Line 151 
Line 152 
         status_free_jobs(&c->status_old);          status_free_jobs(&c->status_old);
         screen_free(&c->status);          screen_free(&c->status);
   
         if (c->title != NULL)          free(c->title);
                 xfree(c->title);  
   
         evtimer_del(&c->repeat_timer);          evtimer_del(&c->repeat_timer);
   
         if (event_initialized(&c->identify_timer))          if (event_initialized(&c->identify_timer))
                 evtimer_del(&c->identify_timer);                  evtimer_del(&c->identify_timer);
   
         if (c->message_string != NULL)          free(c->message_string);
                 xfree(c->message_string);  
         if (event_initialized (&c->message_timer))          if (event_initialized (&c->message_timer))
                 evtimer_del(&c->message_timer);                  evtimer_del(&c->message_timer);
         for (i = 0; i < ARRAY_LENGTH(&c->message_log); i++) {          for (i = 0; i < ARRAY_LENGTH(&c->message_log); i++) {
                 msg = &ARRAY_ITEM(&c->message_log, i);                  msg = &ARRAY_ITEM(&c->message_log, i);
                 xfree(msg->msg);                  free(msg->msg);
         }          }
         ARRAY_FREE(&c->message_log);          ARRAY_FREE(&c->message_log);
   
         if (c->prompt_string != NULL)          free(c->prompt_string);
                 xfree(c->prompt_string);          free(c->prompt_buffer);
         if (c->prompt_buffer != NULL)          free(c->cwd);
                 xfree(c->prompt_buffer);  
   
         if (c->cwd != NULL)  
                 xfree(c->cwd);  
   
         environ_free(&c->environ);          environ_free(&c->environ);
   
         close(c->ibuf.fd);          close(c->ibuf.fd);
Line 662 
Line 657 
   
         title = status_replace(c, NULL, NULL, NULL, template, time(NULL), 1);          title = status_replace(c, NULL, NULL, NULL, template, time(NULL), 1);
         if (c->title == NULL || strcmp(title, c->title) != 0) {          if (c->title == NULL || strcmp(title, c->title) != 0) {
                 if (c->title != NULL)                  free(c->title);
                         xfree(c->title);  
                 c->title = xstrdup(title);                  c->title = xstrdup(title);
                 tty_set_title(&c->tty, c->title);                  tty_set_title(&c->tty, c->title);
         }          }
         xfree(title);          free(title);
 }  }
   
 /* Dispatch message from client. */  /* Dispatch message from client. */

Legend:
Removed from v.1.76  
changed lines
  Added in v.1.77