Autoreleasing SWIFT_SHARED_REFERENCE?

If a c++ type tagged as SWIFT_SHARED_REFERENCE is never used after returning from "create" method, it's respective retain/release functions are never called and it simply leaks memory. This seems to be a bug, since in any other cases (assigning to a variable, calling a method, accessing a property), trigger retain/release cycle to fire correctly.

1 Like