diff options
Diffstat (limited to 'XMPFiles/source/PluginHandler/FileHandlerInstance.cpp')
-rw-r--r-- | XMPFiles/source/PluginHandler/FileHandlerInstance.cpp | 5 |
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 ); } |