Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
1d82cc6d
...
1d82cc6ddba4dff8845cf3ce5a52b8b92ec5f3ab
authored
2002-01-21 14:52:10 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(message_destroy): (message_destroy): free msg only when decremented ref equals zero.
1 parent
3662b9c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
mailbox/message.c
mailbox/message.c
View file @
1d82cc6
...
...
@@ -93,7 +93,7 @@ message_destroy (message_t *pmsg, void *owner)
{
destroy_lock
=
1
;
/* Notify the listeners. */
/* FIXME: to be removed since we do not sup
o
ort this event. */
/* FIXME: to be removed since we do not sup
p
ort this event. */
if
(
msg
->
observable
)
{
observable_notify
(
msg
->
observable
,
MU_EVT_MESSAGE_DESTROY
);
...
...
@@ -137,7 +137,7 @@ message_destroy (message_t *pmsg, void *owner)
mailbox_destroy (&(msg->mailbox));
*/
if
(
msg
->
ref
<
=
0
)
if
(
msg
->
ref
=
=
0
)
free
(
msg
);
}
monitor_unlock
(
monitor
);
...
...
Please
register
or
sign in
to post a comment