Author: mysqlpp
Date: Mon Dec 3 10:10:36 2007
New Revision: 1955
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1955&view=rev
Log:
DBDriver now cleans up allocated Option objects in its applied_options_
deque.
Modified:
trunk/Wishlist
trunk/lib/dbdriver.cpp
Modified: trunk/Wishlist
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/Wishlist?rev=1955&r1=1954&r2=1955&view=diff
==============================================================================
--- trunk/Wishlist (original)
+++ trunk/Wishlist Mon Dec 3 10:10:36 2007
@@ -37,10 +37,6 @@
- Add new Option subclass SSLOption, and reimplement
Connection::enable_ssl() in terms of it. The success of this
will prove the value of an extensible option type system.
-
- - Wrap option::List deque up into a higher-level List class, and
- move DBDriver::option_set() into it as is_set(). ~List() can
- destroy allocated Option objects.
o If Bakefile 0.2.3 (guessing) comes out before we release, change
all the msvs2005prj references in mysql++.bkl, Bakefiles.bkgen
Modified: trunk/lib/dbdriver.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/dbdriver.cpp?rev=1955&r1=1954&r2=1955&view=diff
==============================================================================
--- trunk/lib/dbdriver.cpp (original)
+++ trunk/lib/dbdriver.cpp Mon Dec 3 10:10:36 2007
@@ -59,6 +59,11 @@
{
if (connected()) {
disconnect();
+ }
+
+ OptionList::const_iterator it;
+ for (it = applied_options_.begin(); it != applied_options_.end(); ++it)
{
+ delete *it;
}
}
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits