summaryrefslogtreecommitdiff
path: root/XMPFiles/source/PluginHandler/FileHandlerInstance.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'XMPFiles/source/PluginHandler/FileHandlerInstance.cpp')
-rw-r--r--XMPFiles/source/PluginHandler/FileHandlerInstance.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/XMPFiles/source/PluginHandler/FileHandlerInstance.cpp b/XMPFiles/source/PluginHandler/FileHandlerInstance.cpp
index 2727c41..28218d0 100644
--- a/XMPFiles/source/PluginHandler/FileHandlerInstance.cpp
+++ b/XMPFiles/source/PluginHandler/FileHandlerInstance.cpp
@@ -25,8 +25,9 @@ XMPFileHandler( _parent ), mObject( object ), mHandler( handler )
FileHandlerInstance::~FileHandlerInstance()
{
WXMP_Error error;
- mHandler->getModule()->getPluginAPIs()->mTerminateSessionProc( this->mObject, &error );
- PluginManager::removeHandlerInstance( this->mObject );
+
+ PluginManager::removeHandlerInstance(this->mObject);
+ mHandler->getModule()->getPluginAPIs()->mTerminateSessionProc(this->mObject, &error);
CheckError( error );
}