[mapguide-commits] r5161 -
trunk/MgDev/Common/MapGuideCommon/Services
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Mon Sep 20 12:53:36 EDT 2010
Author: brucedechant
Date: 2010-09-20 16:53:36 +0000 (Mon, 20 Sep 2010)
New Revision: 5161
Modified:
trunk/MgDev/Common/MapGuideCommon/Services/ProxyFeatureService.cpp
Log:
Fix for trac ticket 1443 - MgProxyFeatureService::GetCapabilities is using a fixed api version 1.0.0
http://trac.osgeo.org/mapguide/ticket/1443
Notes:
- Fixed memory leak.
Modified: trunk/MgDev/Common/MapGuideCommon/Services/ProxyFeatureService.cpp
===================================================================
--- trunk/MgDev/Common/MapGuideCommon/Services/ProxyFeatureService.cpp 2010-09-20 14:02:07 UTC (rev 5160)
+++ trunk/MgDev/Common/MapGuideCommon/Services/ProxyFeatureService.cpp 2010-09-20 16:53:36 UTC (rev 5161)
@@ -283,13 +283,15 @@
MgByteReader* MgProxyFeatureService::GetCapabilities(CREFSTRING providerName, CREFSTRING connectionString)
{
+ Ptr<MgUserInformation> userInfo = m_connProp->GetUserInfo();
+
MgCommand cmd;
cmd.ExecuteCommand(m_connProp, // Connection
MgCommand::knObject, // Return type expected
MgFeatureServiceOpId::GetCapabilities_Id, // Command Code
2, // No of arguments
Feature_Service, // Service Id
- m_connProp->GetUserInfo()->GetApiVersion(), // Operation version
+ userInfo->GetApiVersion(), // Operation version
MgCommand::knString, &providerName, // Argument#1
MgCommand::knString, &connectionString, // Argument#2
MgCommand::knNone); // End of argument
More information about the mapguide-commits
mailing list