Author: wyoung
Date: Fri Apr 20 16:41:37 2007
New Revision: 1541

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1541&view=rev
Log:
The STLport/VC++ fix for memory leak in Query wasn't applied to the
Query copy ctor, only to the main ctor.  Fixed.

Modified:
    trunk/lib/query.cpp

Modified: trunk/lib/query.cpp
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/query.cpp?rev=1541&r1=1540&r2=1541&view=diff
==============================================================================
--- trunk/lib/query.cpp (original)
+++ trunk/lib/query.cpp Fri Apr 20 16:41:37 2007
@@ -49,8 +49,9 @@
 }
 
 Query::Query(const Query& q) :
-#if defined(_MSC_VER)
-std::ostream(std::_Noinit), // prevents a double-init memory leak in RTL
+#if defined(_MSC_VER) && !defined(_STLP_VERSION) && !defined(_STLP_VERSION_STR)
+// ditto above
+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