ccrma / chuck

ChucK Music Programming Language
http://chuck.stanford.edu/
GNU General Public License v2.0
799 stars 127 forks source link

Refcounting bug on nested scope #445

Closed AndrewAday closed 2 months ago

AndrewAday commented 2 months ago
class Foo {}

{
    Foo foo;
    // do stuff
}

// after exiting scope, foo refcount is not properly decremented, destructor is not called
gewang commented 2 months ago

fix committed in c56efceeee41b06ef8d2b2ae453daafef797243a unit test in 90f966cb8649840bc05f5d77219867593eb7fe94