Skip to content

Commit

Permalink
Corrected additional fix for bug CORE-5702 : Firebird Handle Leak Win…
Browse files Browse the repository at this point in the history
…dows
  • Loading branch information
hvlad committed Apr 4, 2018
1 parent 681caa5 commit 0cc3d04
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/jrd/jrd.cpp
Expand Up @@ -382,14 +382,19 @@ int JProvider::release()
return 1;
}

static void shutdownBeforeUnload()
static void threadDetach()
{
ThreadSync thread(FB_FUNCTION);
ThreadSync* thd = ThreadSync::findThread();
delete thd;
}

static void shutdownBeforeUnload()
{
LocalStatus status;
CheckStatusWrapper statusWrapper(&status);

JProvider::getInstance()->shutdown(&statusWrapper, 0, fb_shutrsn_exit_called);
threadDetach();
};

class EngineFactory : public AutoIface<IPluginFactoryImpl<EngineFactory, CheckStatusWrapper> >
Expand Down

0 comments on commit 0cc3d04

Please sign in to comment.