[mapguide-commits] r4282 - sandbox/adsk/2.1/Common/MapGuideCommon/System

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Fri Oct 2 15:59:01 EDT 2009


Author: brucedechant
Date: 2009-10-02 15:59:01 -0400 (Fri, 02 Oct 2009)
New Revision: 4282

Modified:
   sandbox/adsk/2.1/Common/MapGuideCommon/System/UserInformation.cpp
Log:
Fix for trac ticket 1110 - Stability improvements
http://trac.osgeo.org/mapguide/ticket/1110

Notes:
- Change SetCurrentUserInfo() to use SAFE_RELEASE


Modified: sandbox/adsk/2.1/Common/MapGuideCommon/System/UserInformation.cpp
===================================================================
--- sandbox/adsk/2.1/Common/MapGuideCommon/System/UserInformation.cpp	2009-10-02 19:56:17 UTC (rev 4281)
+++ sandbox/adsk/2.1/Common/MapGuideCommon/System/UserInformation.cpp	2009-10-02 19:59:01 UTC (rev 4282)
@@ -390,10 +390,7 @@
         ACE_OS::thr_setspecific(g_threadLocalUserInformation, tempUserInformation);
 
         // Clean up old one if applicable
-        if (NULL != oldInfo)
-        {
-            delete oldInfo;
-        }
+        SAFE_RELEASE(oldInfo);
     }
 }
 



More information about the mapguide-commits mailing list