bevy/crates/bevy_ecs
thebluefish f45dbe5bac Fixes dropping empty BlobVec (#2295)
When dropping the data, we originally only checked the size of an individual item instead of the size of the allocation. However with a capacity of 0, we attempt to deallocate a pointer which was not the result of allocation. That is, an item of `Layout { size_: 8, align_: 8 }` produces an array of `Layout { size_: 0, align_: 8 }` when `capacity = 0`.

Fixes #2294
2021-06-02 19:08:39 +00:00
..
macros Use bevy_reflect as path in case of no direct references (#1875) 2021-05-19 19:03:36 +00:00
src Fixes dropping empty BlobVec (#2295) 2021-06-02 19:08:39 +00:00
Cargo.toml Release 0.5.0 (#1835) 2021-04-06 18:48:48 +00:00