MAINT-5430 Crash LLAssetStorage::downloadCompleteCallback

master
andreykproductengine 2015-07-30 18:35:33 +03:00
parent cfe009cbf6
commit 8f56762028
1 changed files with 5 additions and 1 deletions

View File

@ -634,6 +634,10 @@ void LLAssetStorage::downloadCompleteCallback(
}
}
// we will be deleting elements of mPendingDownloads which req might be part of, save id and type for reference
LLUUID callback_id = req->getUUID();
LLAssetType::EType callback_type = req->getType();
// find and callback ALL pending requests for this UUID
// SJB: We process the callbacks in reverse order, I do not know if this is important,
// but I didn't want to mess with it.
@ -660,7 +664,7 @@ void LLAssetStorage::downloadCompleteCallback(
{
add(sFailedDownloadCount, 1);
}
tmp->mDownCallback(gAssetStorage->mVFS, req->getUUID(), req->getType(), tmp->mUserData, result, ext_status);
tmp->mDownCallback(gAssetStorage->mVFS, callback_id, callback_type, tmp->mUserData, result, ext_status);
}
delete tmp;
}