summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-06-03 20:01:17 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2015-06-03 20:01:17 +0100
commit7178416155aa7e2debbe6f6853f35554f5565905 (patch)
tree9a56c5eaf1afa926a6b377b2e7054d88553ca64c
parentPrebuild (once) SQL for cursor operations. (diff)
downloadproject2-7178416155aa7e2debbe6f6853f35554f5565905.tar.bz2
project2-7178416155aa7e2debbe6f6853f35554f5565905.tar.xz
project2-7178416155aa7e2debbe6f6853f35554f5565905.zip
Close master connection to database when deleting mock
-rw-r--r--project2/sql/mockDatabase.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/project2/sql/mockDatabase.cpp b/project2/sql/mockDatabase.cpp
index a9f812d..96b4ac9 100644
--- a/project2/sql/mockDatabase.cpp
+++ b/project2/sql/mockDatabase.cpp
@@ -98,6 +98,7 @@ MockServerDatabase::MockServerDatabase(const std::string & masterdb, const std::
MockServerDatabase::~MockServerDatabase()
{
+ delete master;
}
void