Author: wyoung
Date: Wed Jan 17 06:19:36 2007
New Revision: 1414

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1414&view=rev
Log:
Refined the Query double-init memory leak fix so we don't bother trying
to fix it if the user is using STLport, and not the native VC++ RTL.

Modified:
    trunk/lib/query.cpp

Modified: trunk/lib/query.cpp
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/query.cpp?rev=1414&r1=1413&r2=1414&view=diff
==============================================================================
--- trunk/lib/query.cpp (original)
+++ trunk/lib/query.cpp Wed Jan 17 06:19:36 2007
@@ -32,8 +32,9 @@
 namespace mysqlpp {
 
 Query::Query(Connection* c, bool te) :
-#if defined(_MSC_VER)
-std::ostream(std::_Noinit), // prevents a double-init memory leak in RTL
+#if defined(_MSC_VER) && !defined(_STLP_VERSION)
+// prevents a double-init memory leak in native VC++ RTL (not STLport!)
+std::ostream(std::_Noinit), 
 #else
 std::ostream(0),
 #endif


_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits

Reply via email to