mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Check for Extra pointer dereferencing. Issue #7640.
This commit is contained in:
parent
37ce248f31
commit
2a99915188
5 changed files with 15 additions and 10 deletions
|
@ -102,7 +102,7 @@ pub trait CompositorLayer {
|
|||
fn collect_old_layers<Window>(&self,
|
||||
compositor: &mut IOCompositor<Window>,
|
||||
pipeline_id: PipelineId,
|
||||
new_layers: &Vec<LayerProperties>)
|
||||
new_layers: &[LayerProperties])
|
||||
where Window: WindowMethods;
|
||||
|
||||
/// Destroys all tiles of all layers, including children, *without* sending them back to the
|
||||
|
@ -282,7 +282,7 @@ impl CompositorLayer for Layer<CompositorData> {
|
|||
fn collect_old_layers<Window>(&self,
|
||||
compositor: &mut IOCompositor<Window>,
|
||||
pipeline_id: PipelineId,
|
||||
new_layers: &Vec<LayerProperties>)
|
||||
new_layers: &[LayerProperties])
|
||||
where Window: WindowMethods {
|
||||
// Traverse children first so that layers are removed
|
||||
// bottom up - allowing each layer being removed to properly
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue