From 31ec8350026ef095618bae4306d10573b39d1588 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 15 Apr 2010 11:45:10 +0000 Subject: [PATCH] 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." --- src/osgDB/DatabasePager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osgDB/DatabasePager.cpp b/src/osgDB/DatabasePager.cpp index 2c9207033..de43154f3 100644 --- a/src/osgDB/DatabasePager.cpp +++ b/src/osgDB/DatabasePager.cpp @@ -395,9 +395,9 @@ void DatabasePager::RequestQueue::takeFirst(osg::ref_ptr& datab else { (*citr)->invalidate(); - - citr = _requestList.erase(citr); + OSG_INFO<<"DatabasePager::RequestQueue::takeFirst(): Pruning "<<(*citr)<