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); |
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); |