/[mailutils]/mailutils/mailbox/message.c
ViewVC logotype

Diff of /mailutils/mailbox/message.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.58 by sroberts, Sat Jan 19 20:30:46 2002 UTC revision 1.59 by gray, Mon Jan 21 14:52:10 2002 UTC
# Line 93  message_destroy (message_t *pmsg, void * Line 93  message_destroy (message_t *pmsg, void *
93          {          {
94            destroy_lock =  1;            destroy_lock =  1;
95            /* Notify the listeners.  */            /* Notify the listeners.  */
96            /* FIXME: to be removed since we do not supoort this event.  */            /* FIXME: to be removed since we do not support this event.  */
97            if (msg->observable)            if (msg->observable)
98              {              {
99                observable_notify (msg->observable, MU_EVT_MESSAGE_DESTROY);                observable_notify (msg->observable, MU_EVT_MESSAGE_DESTROY);
# Line 137  message_destroy (message_t *pmsg, void * Line 137  message_destroy (message_t *pmsg, void *
137               mailbox_destroy (&(msg->mailbox));               mailbox_destroy (&(msg->mailbox));
138            */            */
139    
140            if (msg->ref <= 0)            if (msg->ref == 0)
141              free (msg);              free (msg);
142          }          }
143        monitor_unlock (monitor);        monitor_unlock (monitor);

Legend:
Removed from v.1.58  
changed lines
  Added in v.1.59

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26