activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r749820 - /activemq/activemq-cpp/trunk/src/main/activemq/util/PrimitiveValueNode.cpp
Date Tue, 03 Mar 2009 23:01:16 GMT
Author: tabish
Date: Tue Mar  3 23:01:15 2009
New Revision: 749820

URL: http://svn.apache.org/viewvc?rev=749820&view=rev
Log:
Fix segfault in unit tests

Modified:
    activemq/activemq-cpp/trunk/src/main/activemq/util/PrimitiveValueNode.cpp

Modified: activemq/activemq-cpp/trunk/src/main/activemq/util/PrimitiveValueNode.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/util/PrimitiveValueNode.cpp?rev=749820&r1=749819&r2=749820&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/util/PrimitiveValueNode.cpp (original)
+++ activemq/activemq-cpp/trunk/src/main/activemq/util/PrimitiveValueNode.cpp Tue Mar  3 23:01:15
2009
@@ -415,7 +415,8 @@
 void PrimitiveValueNode::setList( const decaf::util::List<PrimitiveValueNode>&
lvalue ){
     clear();
     valueType = LIST_TYPE;
-    value.listValue = new decaf::util::StlList<PrimitiveValueNode>( lvalue );
+    value.listValue = new decaf::util::StlList<PrimitiveValueNode>();
+    value.listValue->copy( lvalue );
 }
 
 ////////////////////////////////////////////////////////////////////////////////



Mime
View raw message