diff --git a/include/osgDB/Serializer b/include/osgDB/Serializer index 74fb9922b..8ff21e443 100644 --- a/include/osgDB/Serializer +++ b/include/osgDB/Serializer @@ -947,6 +947,7 @@ public: if ( is.isBinary() ) { is >> size; + list.reserve(size); for ( unsigned int i=0; i> size; + list.reserve(size); if ( size>0 ) is >> is.BEGIN_BRACKET; for ( unsigned int i=0; i> size; + list.reserve(size); for ( unsigned int i=0; i> size; + list.reserve(size); if ( size>0 ) is >> is.BEGIN_BRACKET; for ( unsigned int i=0; i