New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop global DocList, attach the parsed result to Mailbox #1803
Conversation
Hi, Line 716: // m->free_mdata = help_doclist_free;
I'm not sure what happens here. Please help |
I think I see the problem. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've rebased, fixed the crashes and all the memory leaks.
Only some of the problems were yours, others you inherited (I've doc'd them all).
The main problem was the ownership of the array of Emails.
Now we clearly hand over control to the Mailbox.
Drop the global DocList cache and attach DocList to Mailbox Remove unused functions help_doclist_free() and help_doc_free().
Drop the global DocList cache and attach DocList to Mailbox
What does this PR do?
Before this change, help.c contains a global DocList containing parsed Email. As help documents are parsed only once. Caching is not necessary. Thus removing all caching logic and attach the DocList to Mailbox's mdata.
Screenshots (if relevant)
Does this PR meet the acceptance criteria? (This is just a reminder for you,
this section can be removed if you fulfill it.)
Documentation created/updated (you have to edit
doc/manual.xml.head
for that)
All builds and tests are passing
Added doxygen code documentation
syntax
Code follows the style guide
What are the relevant issue numbers?