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

Add io device closing management in parser #76

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xbroquer
Copy link

Hi,

Today QJson library always closes the QIODevice at the end of parsing.
This may cause problems with volatile data that are destroyed when the I/O device is closed (i.e. network connection, temporary file, memory buffer).

To prevent this, I added a prototype to the parser with a boolean to force the device to be closed after parsing.
This does not break the old behavior and allows the client to choose if the file must be closed or not.

Is it possible to merge this change in the mainline ?
Thanks,
Xavier.

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.

1 participant