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:
Robert Osfield 2010-04-15 11:45:10 +00:00
parent 7db9f18619
commit 31ec835002

View File

@ -395,9 +395,9 @@ void DatabasePager::RequestQueue::takeFirst(osg::ref_ptr<DatabaseRequest>& datab
else else
{ {
(*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);
} }
} }