aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbors-servo <release+servo@mozilla.com>2013-10-21 08:46:01 -0700
committerbors-servo <release+servo@mozilla.com>2013-10-21 08:46:01 -0700
commitf27410602969fd1db5b3b9ce902d1b9f58bdad2e (patch)
treef183866b1dbae97dcefe0d14f8a220d2437e7ba6
parentaccec9c113e85f285e69149413944a94d507f75b (diff)
parent8e669a3ed57b8d42761032843a1c64bda3699eb4 (diff)
downloadservo-f27410602969fd1db5b3b9ce902d1b9f58bdad2e.tar.gz
servo-f27410602969fd1db5b3b9ce902d1b9f58bdad2e.zip
auto merge of #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.
-rw-r--r--src/components/main/platform/common/glfw_windowing.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/main/platform/common/glfw_windowing.rs b/src/components/main/platform/common/glfw_windowing.rs
index 60eaa421c6c..d257439b85f 100644
--- a/src/components/main/platform/common/glfw_windowing.rs
+++ b/src/components/main/platform/common/glfw_windowing.rs
@@ -39,8 +39,8 @@ impl ApplicationMethods for Application {
impl Drop for Application {
fn drop(&self) {
- glfw::terminate();
drop_local_window();
+ glfw::terminate();
}
}