bevy/crates/bevy_ecs/src
Zachary Harrold 6e871ab919
Implement Drop for CommandQueue (#10746)
# Objective

- Fixes #10676, preventing a possible memory leak for commands which
owned resources.

## Solution

Implemented `Drop` for `CommandQueue`. This has been done entirely in
the private API of `CommandQueue`, ensuring no breaking changes. Also
added a unit test, `test_command_queue_inner_drop_early`, based on the
reproduction steps as outlined in #10676.

## Notes

I believe this can be applied to `0.12.1` as well, but I am uncertain of
the process to make that kind of change. Please let me know if there's
anything I can do to help with the back-porting of this change.

---------

Co-authored-by: Carter Anderson <mcanders1@gmail.com>
2023-11-27 22:35:36 +00:00
..
entity Optimise Entity with repr align & manual PartialOrd/Ord (#10558) 2023-11-18 20:04:37 +00:00
query delete methods deprecated in 0.12 (#10693) 2023-11-24 16:15:47 +00:00
reflect delete methods deprecated in 0.12 (#10693) 2023-11-24 16:15:47 +00:00
schedule Copy over docs for Condition trait from PR #10718 (#10748) 2023-11-27 16:33:22 +00:00
storage Make builder types take and return Self (#10001) 2023-10-09 19:46:17 +00:00
system Implement Drop for CommandQueue (#10746) 2023-11-27 22:35:36 +00:00
world Add an Entry api to EntityWorldMut. (#10650) 2023-11-21 01:26:06 +00:00
archetype.rs Add a public API to ArchetypeGeneration/Id (#9825) 2023-10-02 12:54:45 +00:00
bundle.rs Allow #[derive(Bundle)] on tuple structs (take 3) (#10561) 2023-11-21 01:09:16 +00:00
change_detection.rs Rustdoc example for Ref (#10682) 2023-11-22 20:20:39 +00:00
component.rs Updates for rust 1.73 (#10035) 2023-10-06 00:31:10 +00:00
event.rs Wait until FixedUpdate can see events before dropping them (#10077) 2023-11-26 23:04:41 +00:00
lib.rs delete methods deprecated in 0.12 (#10693) 2023-11-24 16:15:47 +00:00
removal_detection.rs delete methods deprecated in 0.12 (#10693) 2023-11-24 16:15:47 +00:00