Skip to content
Snippets Groups Projects
Commit e0ccd302 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

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

parent 0f6aa8f3
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
/*******************************************************************************/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment