Skip to content

foreach loop variable is not released when breaking from the loop #98

Description

@atoft

With a foreach loop of the form:

foreach( TestBreakValue@ v : q )
{
    break;
}

It seems that the loop variable v does not get a call to Release.

I wrote a failing test for this: atoft@54621d9
I was a little uncertain whether it's correct to use @+ as I do in the test, but I think it's valid?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions