Commit e0ccd302 authored by Guillaume Pasero's avatar Guillaume Pasero

BUG: Mantis-1361: fix ld.so message by cleaning app registry before end of main

parent 0f6aa8f3
......@@ -31,6 +31,7 @@
//
// OTB includes (sorted by alphabetic order)
#include "otbWrapperApplicationRegistry.h"
//
// Monteverdi includes (sorted by alphabetic order)
......@@ -74,6 +75,7 @@ MaplaApplication
MaplaApplication
::~MaplaApplication()
{
otb::Wrapper::ApplicationRegistry::CleanRegistry();
}
/*******************************************************************************/
......
......@@ -34,6 +34,7 @@
//
// Monteverdi includes (sorted by alphabetic order)
#include "mvdMainWindow.h"
#include "mvdStackedLayerModel.h"
//
......@@ -41,6 +42,10 @@
# include "mvdOTBApplicationsModel.h"
#endif
#if USE_OTB_APPS
#include "otbWrapperApplicationRegistry.h"
#endif
//
// Class implementation.
namespace mvd
......@@ -76,6 +81,9 @@ Application
Application
::~Application()
{
#if USE_OTB_APPS
otb::Wrapper::ApplicationRegistry::CleanRegistry();
#endif
}
/*******************************************************************************/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment