Check for Extra pointer dereferencing. Issue #7640.

This commit is contained in:
Jaydeep 2015-09-15 15:22:03 -07:00
parent 37ce248f31
commit 2a99915188
5 changed files with 15 additions and 10 deletions

View file

@ -681,7 +681,7 @@ impl<Window: WindowMethods> IOCompositor<Window> {
fn collect_old_layers(&mut self,
pipeline_id: PipelineId,
new_layers: &Vec<LayerProperties>) {
new_layers: &[LayerProperties]) {
let root_layer = match self.scene.root {
Some(ref root_layer) => root_layer.clone(),
None => return,