diff --git a/scwx-qt/source/scwx/qt/main/main.cpp b/scwx-qt/source/scwx/qt/main/main.cpp index f4c782d9..528d2f48 100644 --- a/scwx-qt/source/scwx/qt/main/main.cpp +++ b/scwx-qt/source/scwx/qt/main/main.cpp @@ -4,6 +4,7 @@ #include #include +#include #include #include @@ -14,6 +15,9 @@ int main(int argc, char* argv[]) QCoreApplication::setApplicationName("Supercell Wx"); + Aws::SDKOptions awsSdkOptions; + Aws::InitAPI(awsSdkOptions); + scwx::qt::config::RadarSite::Initialize(); scwx::qt::manager::SettingsManager::Initialize(); scwx::qt::manager::ResourceManager::PreLoad(); @@ -21,5 +25,9 @@ int main(int argc, char* argv[]) QApplication a(argc, argv); scwx::qt::main::MainWindow w; w.show(); - return a.exec(); + int result = a.exec(); + + Aws::ShutdownAPI(awsSdkOptions); + + return result; } diff --git a/test/source/scwx/wxtest.cpp b/test/source/scwx/wxtest.cpp index e3d26c74..8dedd80d 100644 --- a/test/source/scwx/wxtest.cpp +++ b/test/source/scwx/wxtest.cpp @@ -1,5 +1,6 @@ #include +#include #include #include @@ -8,6 +9,13 @@ int main(int argc, char** argv) scwx::util::Logger::Initialize(); spdlog::set_level(spdlog::level::debug); + Aws::SDKOptions awsSdkOptions; + Aws::InitAPI(awsSdkOptions); + ::testing::InitGoogleTest(&argc, argv); - return RUN_ALL_TESTS(); + int result = RUN_ALL_TESTS(); + + Aws::ShutdownAPI(awsSdkOptions); + + return result; }