[swift-users] Swift closure memory problem

Joe Groff jgroff at apple.com
Fri May 27 14:03:02 CDT 2016


> On May 27, 2016, at 11:42 AM, Alon Muroch <alonmuroch at gmail.com> wrote:
> 
> for example { () -> Void
> }

Can you please paste a complete example of code that triggers a leak, as text?

-Joe

> On Fri, May 27, 2016 at 7:59 PM, Joe Groff <jgroff at apple.com> wrote:
> 
> > On May 27, 2016, at 3:57 AM, Alon Muroch via swift-users <swift-users at swift.org> wrote:
> >
> > Hi everyone !
> > Its my first time writing here so i hope i could contribute.
> >
> > The following code seems to create a retain cycle that doesn't let SomeClass1 to release. Am i missing something ?
> >
> > <Screen Shot 2016-05-27 at 10.00.21 AM.png>
> > ​​Alon.
> 
> What are you passing as `topClosure`?
> 
> -Joe
> 



More information about the swift-users mailing list