8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 08:03:04 +01:00

Corrected additional fix for bug CORE-5702 : Firebird Handle Leak Windows

This commit is contained in:
hvlad 2018-04-05 00:37:45 +03:00
parent 681caa5995
commit 0cc3d04c9a

View File

@ -382,14 +382,19 @@ int JProvider::release()
return 1;
}
static void threadDetach()
{
ThreadSync* thd = ThreadSync::findThread();
delete thd;
}
static void shutdownBeforeUnload()
{
ThreadSync thread(FB_FUNCTION);
LocalStatus status;
CheckStatusWrapper statusWrapper(&status);
JProvider::getInstance()->shutdown(&statusWrapper, 0, fb_shutrsn_exit_called);
threadDetach();
};
class EngineFactory : public AutoIface<IPluginFactoryImpl<EngineFactory, CheckStatusWrapper> >