diff options
author | randomdan <randomdan@localhost> | 2011-02-19 17:01:55 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2011-02-19 17:01:55 +0000 |
commit | a36be7f6f3540ffd99ae0eb50a36002f06c27be5 (patch) | |
tree | a306b9fc1fc317cc1abd1e6d01517628b9ecf3ae /project2/commonObjects.cpp | |
parent | Pass null values to presenters, it's up to them what to do with them (diff) | |
download | project2-a36be7f6f3540ffd99ae0eb50a36002f06c27be5.tar.bz2 project2-a36be7f6f3540ffd99ae0eb50a36002f06c27be5.tar.xz project2-a36be7f6f3540ffd99ae0eb50a36002f06c27be5.zip |
Use a smart pointer to ensure sqlRows query handle is always deleted
Add CommonObjects destructor to ensure rowSets are cleared before datasources
Diffstat (limited to 'project2/commonObjects.cpp')
-rw-r--r-- | project2/commonObjects.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/project2/commonObjects.cpp b/project2/commonObjects.cpp index 2ca4846..89eb913 100644 --- a/project2/commonObjects.cpp +++ b/project2/commonObjects.cpp @@ -2,6 +2,12 @@ #include <libxml++/parsers/domparser.h> #include <libxml/xinclude.h> +CommonObjects::~CommonObjects() +{ + rowSets.clear(); + datasources.clear(); +} + RowSetPtr CommonObjects::getSource(const std::string & name) const { |