Merge pull request #13276 from SamGondelman/resource

Protect against null resource
This commit is contained in:
Sam Gondelman 2018-06-08 11:35:04 -07:00 committed by GitHub
commit 4e649d2498
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -636,7 +636,10 @@ void Resource::attemptRequest() {
<< "- retrying asset load - attempt" << _attempts << " of " << MAX_ATTEMPTS;
}
ResourceCache::attemptRequest(_self);
auto self = _self.lock();
if (self) {
ResourceCache::attemptRequest(self);
}
}
void Resource::finishedLoading(bool success) {