mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2024-11-10 07:11:54 +00:00
fix crash in release - that bug has been in forever? does this show up now because of the compiler/platform upgrade?
This commit is contained in:
parent
7c513161b1
commit
28fe20b384
1 changed files with 2 additions and 3 deletions
|
@ -403,13 +403,12 @@ void CSynapseServer::PushRequired( CSynapseClient *pClient ){
|
||||||
std::list<CSynapseClientSlot>::iterator iClientSlot;
|
std::list<CSynapseClientSlot>::iterator iClientSlot;
|
||||||
for ( iClientSlot = mClients.begin(); iClientSlot != mClients.end(); iClientSlot++ )
|
for ( iClientSlot = mClients.begin(); iClientSlot != mClients.end(); iClientSlot++ )
|
||||||
{
|
{
|
||||||
CSynapseClient *pScanClient = ( *iClientSlot ).
|
CSynapseClient *pScanClient = ( *iClientSlot ).mpClient;
|
||||||
mpClient;
|
|
||||||
int j,jmax = pScanClient->GetAPICount();
|
int j,jmax = pScanClient->GetAPICount();
|
||||||
for ( j = 0; j < jmax; j++ )
|
for ( j = 0; j < jmax; j++ )
|
||||||
{
|
{
|
||||||
APIDescriptor_t *pAPI = pScanClient->GetAPIDescriptor( j );
|
APIDescriptor_t *pAPI = pScanClient->GetAPIDescriptor( j );
|
||||||
if ( pAPI->mType == SYN_PROVIDE ) {
|
if ( pAPI != NULL && pAPI->mType == SYN_PROVIDE ) {
|
||||||
if ( pManager->MatchAPI( pAPI->major_name, pAPI->minor_name ) ) {
|
if ( pManager->MatchAPI( pAPI->major_name, pAPI->minor_name ) ) {
|
||||||
/*! we are going to want to load this one
|
/*! we are going to want to load this one
|
||||||
* NOTE TTimo: what if this can not be resolved in the end?
|
* NOTE TTimo: what if this can not be resolved in the end?
|
||||||
|
|
Loading…
Reference in a new issue