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
27b45d3a
...
27b45d3a558b2a62d594458458aa7b0a041a15d4
authored
2000-11-14 14:03:36 +0000
by
Alain Magloire
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
add reference count for floating message.
1 parent
203c6eb3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
mailbox/message.c
mailbox/message.c
View file @
27b45d3
...
...
@@ -63,7 +63,8 @@ message_destroy (message_t *pmsg, void *owner)
message_t
msg
=
*
pmsg
;
msg
->
ref
--
;
if
(
msg
->
owner
==
owner
)
if
((
msg
->
owner
&&
msg
->
owner
==
owner
)
||
(
msg
->
owner
==
NULL
&&
msg
->
ref
<=
0
))
{
/* Notify the listeners. */
/* FIXME: to be removed since we do not supoort this event. */
...
...
@@ -93,6 +94,9 @@ message_destroy (message_t *pmsg, void *owner)
if
(
msg
->
mime
)
mime_destroy
(
&
(
msg
->
mime
));
/* Loose the owner. */
msg
->
owner
=
NULL
;
if
(
msg
->
ref
<=
0
)
free
(
msg
);
}
...
...
Please
register
or
sign in
to post a comment