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

BUG: try to fix segfault when machine learning application are closed

parent 2a952db3
No related branches found
No related tags found
No related merge requests found
......@@ -94,6 +94,10 @@ public:
/** close all handles at program exit */
~ApplicationPrivateRegistry()
{
// unregister all ITK factories, because some of them could have been
// registered by the shared libs we are about to close.
itk::ObjectFactoryBase::UnRegisterAllFactories();
// Close all opened shared libs
AppHandleContainerType::iterator it;
for (it = m_Container.begin() ; it != m_Container.end() ; ++it)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment