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

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

version 1.22, 2017/04/21 20:26:34 version 1.23, 2017/04/28 19:13:55
Line 101 
Line 101 
         if (ne->client != NULL)          if (ne->client != NULL)
                 server_client_unref(ne->client);                  server_client_unref(ne->client);
         if (ne->session != NULL)          if (ne->session != NULL)
                 session_unref(ne->session);                  session_remove_ref(ne->session, __func__);
         if (ne->window != NULL)          if (ne->window != NULL)
                 window_remove_ref(ne->window);                  window_remove_ref(ne->window, __func__);
   
         if (ne->fs.s != NULL)          if (ne->fs.s != NULL)
                 session_unref(ne->fs.s);                  session_remove_ref(ne->fs.s, __func__);
   
         free((void *)ne->name);          free((void *)ne->name);
         free(ne);          free(ne);
Line 136 
Line 136 
         if (c != NULL)          if (c != NULL)
                 c->references++;                  c->references++;
         if (s != NULL)          if (s != NULL)
                 s->references++;                  session_add_ref(s, __func__);
         if (w != NULL)          if (w != NULL)
                 w->references++;                  window_add_ref(w, __func__);
   
         cmd_find_copy_state(&ne->fs, fs);          cmd_find_copy_state(&ne->fs, fs);
         if (ne->fs.s != NULL)          if (ne->fs.s != NULL) /* cmd_find_valid_state needs session */
                 ne->fs.s->references++; /* cmd_find_valid_state need session */                  session_add_ref(ne->fs.s, __func__);
   
         new_item = cmdq_get_callback(notify_callback, ne);          new_item = cmdq_get_callback(notify_callback, ne);
         cmdq_append(NULL, new_item);          cmdq_append(NULL, new_item);

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