Skip to content
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

Move libxml cleanup code to a plist_cleanup method #73

Conversation

qmfrederik
Copy link
Contributor

In spirit of #57 and #68 and the comments made by @FunkyM, @nikias, @cfergeau and @progressnerd, this PR attempts to move the libxml cleanup code introduced by a11e8b1 to a seperate plist_cleanup method. It would be the responsability of the user of libplist to actually call this method if required.

Feedback is welcome; I think this multithreading issue is causing quite some of the crashes in libimobiledevice so it would be good to have this addressed.

@nikias
Copy link
Member

nikias commented Apr 20, 2016

Pushed to master after rebase.

@ajinkyajoshi111
Copy link

where should we call this plist_cleanup() method? Who is the user? how the method will get invoked? please help

@greg-dennis
Copy link
Contributor

@ajinkyajoshi111 libimobiledevice at head includes this change, so if you just update to head you should be fine. Note that it is fine if this cleanup method is never called at all --- that state will be cleaned-up when the process exits anyway. If a binary wants to call it immediately before exit or when plist functionality is no longer needed that might offer a small benefit, but it's not crucial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants