Skip to content

Commit f274106

Browse files
author
bors-servo
committed
auto merge of servo#1093 : larsbergstrom/servo/shutdown_window_destruction, r=metajack
We were removing the Window from TLS and thus destroying it after terminating the windowing system, which caused an error due to calling a glfw function when it was not inititalized.
2 parents accec9c + 8e669a3 commit f274106

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/main/platform/common/glfw_windowing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ impl ApplicationMethods for Application {
3939

4040
impl Drop for Application {
4141
fn drop(&self) {
42-
glfw::terminate();
4342
drop_local_window();
43+
glfw::terminate();
4444
}
4545
}
4646

0 commit comments

Comments
 (0)