From 8e669a3ed57b8d42761032843a1c64bda3699eb4 Mon Sep 17 00:00:00 2001 From: Lars Bergstrom Date: Fri, 18 Oct 2013 20:23:33 -0500 Subject: [PATCH] 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. --- src/components/main/platform/common/glfw_windowing.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } }