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

Map calling destructors incorrectly during cleanup (now fixed) #17

Open
JacksonAllan opened this issue Feb 11, 2025 · 0 comments
Open
Labels
bug Something isn't working

Comments

@JacksonAllan
Copy link
Owner

JacksonAllan commented Feb 11, 2025

Unfortunately, there was a bug in previous releases that caused maps to call the wrong destructors during cleanup.

Specifically, the cc_map_cleanup function (invoked via the cc_cleanup API macro) would call the key-type destructor on elements and the element-type destructor on keys. This bug would affect users using destructors in conjunction with maps and typically result in a crash.

I’ve just published a new release (v1.3.2) that corrects this bug. I’ll leave this GitHub issue open for a few days for visibility and then close it.

@JacksonAllan JacksonAllan added the bug Something isn't working label Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant