From Jason Beverage, "Here is a small fix to the DatabasePager to fix a crash if you were
running with the OSG_NOTIFY_LEVEL set to INFO. An iterator was being erased, and then referenced to display a message. Just changed it to display the message first, then erase."
This commit is contained in:
parent
7db9f18619
commit
31ec835002
@ -396,8 +396,8 @@ void DatabasePager::RequestQueue::takeFirst(osg::ref_ptr<DatabaseRequest>& datab
|
|||||||
{
|
{
|
||||||
(*citr)->invalidate();
|
(*citr)->invalidate();
|
||||||
|
|
||||||
citr = _requestList.erase(citr);
|
|
||||||
OSG_INFO<<"DatabasePager::RequestQueue::takeFirst(): Pruning "<<(*citr)<<std::endl;
|
OSG_INFO<<"DatabasePager::RequestQueue::takeFirst(): Pruning "<<(*citr)<<std::endl;
|
||||||
|
citr = _requestList.erase(citr);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user