Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refcounting bug on nested scope #445

Closed
AndrewAday opened this issue Jun 19, 2024 · 1 comment
Closed

Refcounting bug on nested scope #445

AndrewAday opened this issue Jun 19, 2024 · 1 comment

Comments

@AndrewAday
Copy link
Contributor

class Foo {}

{
    Foo foo;
    // do stuff
}

// after exiting scope, foo refcount is not properly decremented, destructor is not called
@gewang
Copy link
Member

gewang commented Jun 21, 2024

fix committed in c56efce
unit test in 90f966c

@gewang gewang closed this as completed Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants