[mapguide-commits] r4281 - trunk/MgDev/Common/MapGuideCommon/System

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Fri Oct 2 15:56:17 EDT 2009


Author: brucedechant
Date: 2009-10-02 15:56:17 -0400 (Fri, 02 Oct 2009)
New Revision: 4281

Modified:
   trunk/MgDev/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: trunk/MgDev/Common/MapGuideCommon/System/UserInformation.cpp
===================================================================
--- trunk/MgDev/Common/MapGuideCommon/System/UserInformation.cpp	2009-10-02 19:54:40 UTC (rev 4280)
+++ trunk/MgDev/Common/MapGuideCommon/System/UserInformation.cpp	2009-10-02 19:56:17 UTC (rev 4281)
@@ -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