diff Common/StoragePlugin.cpp @ 57:ba1be668e475

fix initialization of the aws static library
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 22 Jun 2021 16:55:24 +0200
parents b922ae86bbe1
children 80792bb9600e
line wrap: on
line diff
--- a/Common/StoragePlugin.cpp	Tue Jun 22 15:00:36 2021 +0200
+++ b/Common/StoragePlugin.cpp	Tue Jun 22 16:55:24 2021 +0200
@@ -306,6 +306,7 @@
   {
     OrthancPlugins::SetGlobalContext(context);
 
+    Orthanc::InitializeFramework("", false);
     Orthanc::Logging::InitializePluginContext(context);
 
     OrthancPlugins::OrthancConfiguration orthancConfig;
@@ -402,6 +403,8 @@
   ORTHANC_PLUGINS_API void OrthancPluginFinalize()
   {
     OrthancPlugins::LogWarning(std::string(StoragePluginFactory::GetStoragePluginName()) + " plugin is finalizing");
+    plugin.reset();
+    Orthanc::FinalizeFramework();
   }