Rename the free_graphics_resources to component_destroyed

And do not iterate over the items anymore
This commit is contained in:
Olivier Goffart 2022-05-30 15:58:00 +02:00 committed by Olivier Goffart
parent 6cbf2c0609
commit ad2d19165a
10 changed files with 17 additions and 60 deletions

View file

@ -1091,10 +1091,8 @@ fn generate_item_tree(
let mut destructor = vec!["auto self = this;".to_owned()];
destructor.push(format!(
"{}->m_window.window_handle().free_graphics_resources(self, item_array());",
root_access
));
destructor
.push(format!("{}->m_window.window_handle().component_destroyed(self);", root_access));
target_struct.members.push((
Access::Public,