Index: /OpenSceneGraph/trunk/include/osgDB/Serializer
===================================================================
--- /OpenSceneGraph/trunk/include/osgDB/Serializer (revision 11018)
+++ /OpenSceneGraph/trunk/include/osgDB/Serializer (revision 11034)
@@ -867,5 +867,5 @@
 
 #define END_ENUM_SERIALIZER() \
-    wrapper->addSerializer(serializer); }
+    wrapper->addSerializer(serializer.get()); }
 
 
Index: /OpenSceneGraph/trunk/src/osgAnimation/StackedTransform.cpp
===================================================================
--- /OpenSceneGraph/trunk/src/osgAnimation/StackedTransform.cpp (revision 11009)
+++ /OpenSceneGraph/trunk/src/osgAnimation/StackedTransform.cpp (revision 11034)
@@ -24,5 +24,5 @@
     for (StackedTransform::const_iterator it = rhs.begin(); it != rhs.end(); ++it)
     {
-        const StackedTransformElement* element = *it;
+        const StackedTransformElement* element = it->get();
         if (element)
             push_back(osg::clone(element,co));
@@ -37,5 +37,5 @@
     {
         
-        StackedTransformElement* element = *it;
+        StackedTransformElement* element = it->get();
         if (!element)
             continue;
@@ -54,5 +54,5 @@
     for (StackedTransform::iterator it = begin(); it != end(); ++it)
     {
-        StackedTransformElement* element = *it;
+        StackedTransformElement* element = it->get();
         if (!element || element->isIdentity())
             continue;
Index: /OpenSceneGraph/trunk/src/osgAnimation/UpdateMatrixTransform.cpp
===================================================================
--- /OpenSceneGraph/trunk/src/osgAnimation/UpdateMatrixTransform.cpp (revision 11009)
+++ /OpenSceneGraph/trunk/src/osgAnimation/UpdateMatrixTransform.cpp (revision 11034)
@@ -53,5 +53,5 @@
     for (StackedTransform::iterator it = _transforms.begin(); it != _transforms.end(); ++it)
     {
-        StackedTransformElement* element = *it;
+        StackedTransformElement* element = it->get();
         if (element && !element->getName().empty() && channelName == element->getName())
         {
Index: /OpenSceneGraph/trunk/src/osgPlugins/Inventor/ConvertFromInventor.cpp
===================================================================
--- /OpenSceneGraph/trunk/src/osgPlugins/Inventor/ConvertFromInventor.cpp (revision 11032)
+++ /OpenSceneGraph/trunk/src/osgPlugins/Inventor/ConvertFromInventor.cpp (revision 11034)
@@ -281,5 +281,5 @@
     // (ivStateStack is used to track the state that is not accessible by
     // SoCallbackAction functions)
-    ivStateStack.push(IvStateItem(ivRootNode, osgRootNode));
+    ivStateStack.push(IvStateItem(ivRootNode, osgRootNode.get()));
 
     // Create callback actions for the inventor nodes
@@ -512,16 +512,5 @@
 
         // Get osgStateRoot (note: we HAVE TO reference it)
-        osg::Group *stateRoot = ivState.osgStateRoot;
-        osg::ref_ptr<osg::Group> r = stateRoot;
-/*    assert(strcmp(stateRoot->className(), "Group") == 0 &&
-           "IvStateStack osg graph is expected to be "
-           "headed by osg::Group");
-        if (stateRoot->getNumChildren() == 1) {
-            r = stateRoot->getChild(0)->asGroup();
-            osg::notify(osg::FATAL) << stateRoot->className() << std::endl;
-            osg::notify(osg::FATAL) << stateRoot->getChild(0)->className() << std::endl;
-            exit(0);
-            assert(r != NULL && "Node must be group.");
-        }*/
+        osg::ref_ptr<osg::Group> r = ivState.osgStateRoot;
 
         // Pop state
@@ -539,5 +528,5 @@
         // APPEND_AT_PUSH
         if (!(ivState.flags & IvStateItem::APPEND_AT_PUSH))
-            appendNode(r, action);
+            appendNode(r.get(), action);
 
     } while (multipop);
@@ -1229,5 +1218,5 @@
     }
 
-    return osgProgram->addShader(osgShader);
+    return osgProgram->addShader(osgShader.get());
 }
 #endif // INVENTOR_SHADERS_AVAILABLE
Index: /OpenSceneGraph/trunk/src/osgWrappers/deprecated-dotosg/osgAnimation/UpdateMatrixTransform.cpp
===================================================================
--- /OpenSceneGraph/trunk/src/osgWrappers/deprecated-dotosg/osgAnimation/UpdateMatrixTransform.cpp (revision 11009)
+++ /OpenSceneGraph/trunk/src/osgWrappers/deprecated-dotosg/osgAnimation/UpdateMatrixTransform.cpp (revision 11034)
@@ -51,5 +51,5 @@
     for (osgAnimation::StackedTransform::const_iterator it = transforms.begin(); it != transforms.end(); ++it)
     {
-        osgAnimation::StackedTransformElement* element = *it;
+        osgAnimation::StackedTransformElement* element = it->get();
         if (element)
             fw.writeObject(*element);
