I’m now convinced this is a Swift code-gen error. I’ve confirmed that the 
object that’s prematurely freed is the temporary NSString created by 
swift_convertStringToNSString. It’s being freed by a call to swift_release that 
occurs inside the method that the NSString gets passed into. In other words, 
the compiled code is over-releasing this ephemeral NSString that never appears 
in the source code at all.

I’m not sure I can simplify this into a test case, but I’ll try.

—Jens
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to