[mapguide-commits] r4384 - in trunk/MgDev: Common/Stylization Server/src/Gws/GwsQueryEngine

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Mon Dec 7 19:09:19 EST 2009


Author: waltweltonlair
Date: 2009-12-07 19:09:19 -0500 (Mon, 07 Dec 2009)
New Revision: 4384

Modified:
   trunk/MgDev/Common/Stylization/ExpressionFunctionIf.cpp
   trunk/MgDev/Server/src/Gws/GwsQueryEngine/GwsPreparedFeatureQuery.cpp
Log:
Don't forget to release FDO exceptions...

Modified: trunk/MgDev/Common/Stylization/ExpressionFunctionIf.cpp
===================================================================
--- trunk/MgDev/Common/Stylization/ExpressionFunctionIf.cpp	2009-12-07 23:55:59 UTC (rev 4383)
+++ trunk/MgDev/Common/Stylization/ExpressionFunctionIf.cpp	2009-12-08 00:09:19 UTC (rev 4384)
@@ -146,7 +146,11 @@
                     FdoPtr<FdoFilter> filter = FdoFilter::Parse(condString);
                     condition = m_engine->ProcessFilter(filter);
                 }
-                catch (FdoException*) { } // value remains false
+                catch (FdoException* e)
+                {
+                    e->Release();
+                    // value remains false
+                }
             }
         }
     }

Modified: trunk/MgDev/Server/src/Gws/GwsQueryEngine/GwsPreparedFeatureQuery.cpp
===================================================================
--- trunk/MgDev/Server/src/Gws/GwsQueryEngine/GwsPreparedFeatureQuery.cpp	2009-12-07 23:55:59 UTC (rev 4383)
+++ trunk/MgDev/Server/src/Gws/GwsQueryEngine/GwsPreparedFeatureQuery.cpp	2009-12-08 00:09:19 UTC (rev 4384)
@@ -251,6 +251,7 @@
 
     } catch (FdoException * fdoEx) {
         PushFdoException (eGwsFdoProviderError, fdoEx);
+        fdoEx->Release ();
         stat = eGwsFdoProviderError;
     }
 



More information about the mapguide-commits mailing list