Fix seg-fault when using without a window (#1874)
* Fix seg-fault when using without a window #1869 * Update changelog
This commit is contained in:
parent
3571dcd68c
commit
4192d04a53
4 changed files with 16 additions and 11 deletions
|
|
@ -1158,7 +1158,7 @@ impl Drop for UnownedWindow {
|
|||
trace!("Dropping `UnownedWindow` ({:?})", self as *mut _);
|
||||
// Close the window if it has not yet been closed.
|
||||
if *self.ns_window != nil {
|
||||
unsafe { util::close_async(*self.ns_window) };
|
||||
unsafe { util::close_async(self.ns_window.clone()) };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue