mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 04:43:03 +01:00
Corrected additional fix for bug CORE-5702 : Firebird Handle Leak Windows
This commit is contained in:
parent
681caa5995
commit
0cc3d04c9a
@ -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> >
|
||||
|
Loading…
Reference in New Issue
Block a user