[Mobies-commit] [commit] r3617 - UDM/trunk/include

ksmyth at redhat1.isis.vanderbilt.edu ksmyth at redhat1.isis.vanderbilt.edu
Thu Jan 27 12:33:00 CST 2011


Author: ksmyth
Date: Thu Jan 27 12:33:00 2011
New Revision: 3617

Log:
Apparently an object can be moved more than once, so we need to check for NULL

Modified:
   UDM/trunk/include/UdmBase.h

Modified: UDM/trunk/include/UdmBase.h
==============================================================================
--- UDM/trunk/include/UdmBase.h	Wed Jan 26 10:54:12 2011	(r3616)
+++ UDM/trunk/include/UdmBase.h	Thu Jan 27 12:33:00 2011	(r3617)
@@ -2713,7 +2713,8 @@
 		Object& operator=(Object&& a)
 		{
 			if (this != &a) {
-				impl->release();
+				if (impl != NULL)
+					impl->release();
 				impl = a.impl;
 				a.impl = NULL;
 			}


More information about the Mobies-commit mailing list