-
-
Notifications
You must be signed in to change notification settings - Fork 66
Fix script engine access in XMLHttpRequest #1969
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
base: master
Are you sure you want to change the base?
Conversation
|
What does this fix? |
|
It fixes a crash on newest libnode. On release we still have the old libnode. |
| _v8Object.Reset(); | ||
| QObject* qobject = _object; | ||
| if(qobject) qobject->deleteLater(); | ||
| if(qobject) delete qobject; |
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.
Maybe add an assertion to check this is running on the right thread?
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.
Thank you! I added an assert and it uncovered underlying issue with ScriptableResource which I fixed too.
| _qobjectWrapperMap.clear(); | ||
| _qobjectWrapperMapV8.clear(); | ||
| } | ||
| // Events need to be processed one more time: |
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.
Maybe a comment stating this is for completing pending deleteLater calls?
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.
Fixed!
|
Fixes a crash for me when disconnecting from |
Thanks to Gouldron for the backtrace!