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

Fixed some AV's reported privately

This commit is contained in:
hvlad 2011-06-29 20:18:37 +00:00
parent 13e0341fea
commit 7cb28a7af6
2 changed files with 9 additions and 2 deletions

View File

@ -1758,7 +1758,10 @@ JAttachment* FB_CARG JProvider::attachDatabase(IStatus* user_status, const char*
dbb->dbb_sync.lock(NULL, SYNC_EXCLUSIVE);
dbbGuard.unlock();
attachment->att_interface = NULL;
if (attachment) {
attachment->att_interface = NULL;
}
unwindAttach(tdbb, ex, user_status, attachment, dbb);
}
}
@ -2606,7 +2609,9 @@ JAttachment* FB_CARG JProvider::createDatabase(IStatus* user_status, const char*
dbb->dbb_sync.lock(NULL, SYNC_EXCLUSIVE);
dbbGuard.unlock();
attachment->att_interface = NULL;
if (attachment) {
attachment->att_interface = NULL;
}
unwindAttach(tdbb, ex, user_status, attachment, dbb);
}
}

View File

@ -5008,6 +5008,7 @@ void Dispatcher::shutdown(IStatus* userStatus, unsigned int timeout, const int r
if (service->provider)
{
service->next = NULL;
PluginManagerInterfacePtr()->releasePlugin(service->provider);
service->provider = NULL;
}
@ -5031,6 +5032,7 @@ void Dispatcher::shutdown(IStatus* userStatus, unsigned int timeout, const int r
if (attachment->provider)
{
attachment->next = NULL;
PluginManagerInterfacePtr()->releasePlugin(attachment->provider);
attachment->provider = NULL;
}