summaryrefslogtreecommitdiff
path: root/src/modules/extra/m_sqllog.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-04-24 13:28:07 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-04-24 13:28:07 +0000
commit5d407fb44c759524881712a80febb86b4506ddbf (patch)
treef0f426e645518a859ad25284f478854818a92da8 /src/modules/extra/m_sqllog.cpp
parent009c5b0562c280743033ea6ca2e673201a8e218c (diff)
delete operator tracking in debug mode (using a macro -- live with it.)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3904 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/extra/m_sqllog.cpp')
-rw-r--r--src/modules/extra/m_sqllog.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/modules/extra/m_sqllog.cpp b/src/modules/extra/m_sqllog.cpp
index 845c3e0d9..84dd8fa43 100644
--- a/src/modules/extra/m_sqllog.cpp
+++ b/src/modules/extra/m_sqllog.cpp
@@ -50,7 +50,7 @@ class ModuleSQLLog : public Module
{
Conf = new ConfigReader();
dbid = Conf->ReadInteger("sqllog","dbid",0,true); // database id of a database configured in m_sql (see m_sql config)
- delete Conf;
+ DELETE(Conf);
SQLModule = Srv->FindModule("m_sql.so");
if (!SQLModule)
Srv->Log(DEFAULT,"WARNING: m_SQLLog.so could not initialize because m_sql.so is not loaded. Load the module and rehash your server.");
@@ -92,18 +92,18 @@ class ModuleSQLLog : public Module
if (rowresult->GetType() == SQL_ROW)
{
nid = atoi(rowresult->GetField("id").c_str());
- delete rowresult;
+ DELETE(rowresult);
}
- delete rowrequest;
- delete result;
+ DELETE(rowrequest);
+ DELETE(result);
}
query->SetQueryType(SQL_DONE);
query->SetConnID(dbid);
Request donerequest((char*)query, this, SQLModule);
donerequest.Send();
- delete query;
+ DELETE(query);
if (nid < 1)
{
@@ -117,9 +117,9 @@ class ModuleSQLLog : public Module
}
if (result2)
- delete result;
+ DELETE(result);
if (query2)
- delete query2;
+ DELETE(query2);
nid = InsertNick(nick);
}
@@ -141,9 +141,9 @@ class ModuleSQLLog : public Module
}
if (result)
- delete result;
+ DELETE(result);
if (query)
- delete query;
+ DELETE(query);
return;
}
@@ -165,18 +165,18 @@ class ModuleSQLLog : public Module
if (rowresult->GetType() == SQL_ROW)
{
hid = atoi(rowresult->GetField("id").c_str());
- delete rowresult;
+ DELETE(rowresult);
}
- delete rowrequest;
- delete result;
+ DELETE(rowrequest);
+ DELETE(result);
}
query->SetQueryType(SQL_DONE);
query->SetConnID(dbid);
Request donerequest((char*)query, this, SQLModule);
donerequest.Send();
- delete query;
+ DELETE(query);
if (hid < 1)
{
@@ -190,9 +190,9 @@ class ModuleSQLLog : public Module
}
if (result)
- delete result2;
+ DELETE(result2);
if (query)
- delete query2;
+ DELETE(query2);
hid = InsertHost(host);
}