diff --git a/indra/llwindow/llwindowsdl.cpp b/indra/llwindow/llwindowsdl.cpp
index 010e4e848f93c487c6e6dbfa6bed8afe9287ebe2..560cf7c7d50b6b130b98bdd170ddea7fceb85dbf 100644
--- a/indra/llwindow/llwindowsdl.cpp
+++ b/indra/llwindow/llwindowsdl.cpp
@@ -967,6 +967,9 @@ LLWindowSDL::~LLWindowSDL()
 	}
 
 	gWindowImplementation = NULL;
+
+	// Shutdown SDL
+	SDL_Quit();
 }