Skip to content

Commit

Permalink
Remove layer from superlayer when dropping (#326)
Browse files Browse the repository at this point in the history
Signed-off-by: Wu Wayne <[email protected]>
  • Loading branch information
wusyong authored Dec 31, 2024
1 parent 0a468c8 commit 300789d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/platform/macos/system/surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,8 @@ impl Drop for ViewInfo {

// Drop the reference that the callback was holding onto.
let _ = mem::transmute_copy::<Arc<VblankCond>, Arc<VblankCond>>(&self.next_vblank);

self.layer.remove_from_superlayer();
}
}
}
Expand Down

0 comments on commit 300789d

Please sign in to comment.