mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 04:03:04 +01:00
Prevent AV when thread detaches and no modules was loaded
This commit is contained in:
parent
126e99072e
commit
d8eb4a4970
@ -1183,7 +1183,8 @@ void PluginManager::waitForType(unsigned int typeThatMustGoAway)
|
||||
void PluginManager::threadDetach()
|
||||
{
|
||||
MutexLockGuard g(plugins->mutex, FB_FUNCTION);
|
||||
modules->threadDetach();
|
||||
if (modules)
|
||||
modules->threadDetach();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user