bevy/crates/bevy_ecs/src/storage
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
..
blob_vec.rs Fixes dropping empty BlobVec (#2295) 2021-06-02 19:08:39 +00:00
mod.rs Bevy ECS V2 (#1525) 2021-03-05 07:54:35 +00:00
sparse_set.rs drop overwritten component data on double insert (#2227) 2021-05-30 20:15:40 +00:00
table.rs drop overwritten component data on double insert (#2227) 2021-05-30 20:15:40 +00:00