Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Reset NSNetService delegate to nil,when stop service. #11270

Merged
merged 1 commit into from
Sep 16, 2019
Merged

Reset NSNetService delegate to nil,when stop service. #11270

merged 1 commit into from
Sep 16, 2019

Conversation

Qxyat
Copy link
Contributor

@Qxyat Qxyat commented Aug 20, 2019

Because the NSNetService's delegate is 'assign' property,we should reset it to nil when stop service. Otherwise something unexpected happened. Like '__weak variable at 0x107489aa0 holds 0x113605fa0 instead of 0x1074e14e0. This is probably incorrect use of objc_storeWeak() and objc_loadWeak(). Break on objc_weak_error to debug.'

Copy link
Member

@chinmaygarde chinmaygarde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see how this TU could be affected by the error you describe since it doesn't use ARC. But, clearing out the delegate before dealloc makes sense.

@cbracken cbracken merged commit 7d42bc7 into flutter:master Sep 16, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 16, 2019
engine-flutter-autoroll added a commit to flutter/flutter that referenced this pull request Sep 16, 2019
[email protected]:flutter/engine.git/compare/8a8610a9a514...63873d9

git log 8a8610a..63873d9 --no-merges --oneline
2019-09-16 [email protected] Fix objects equal to null not being detected as null (flutter/engine#11283)
2019-09-16 [email protected] Reset NSNetService delegate to nil,when stop service. (flutter/engine#11270)


If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC [email protected] on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
Inconnu08 pushed a commit to Inconnu08/flutter that referenced this pull request Sep 30, 2019
[email protected]:flutter/engine.git/compare/8a8610a9a514...63873d9

git log 8a8610a..63873d9 --no-merges --oneline
2019-09-16 [email protected] Fix objects equal to null not being detected as null (flutter/engine#11283)
2019-09-16 [email protected] Reset NSNetService delegate to nil,when stop service. (flutter/engine#11270)


If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC [email protected] on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants