summaryrefslogtreecommitdiff
path: root/plugins/BasicHistory/src/EventList.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-10-19 14:35:34 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-10-19 14:35:34 +0000
commit41f218316dce6b1bfcfb0f2754379fa74c5138ed (patch)
tree1cd44fe63c6ebabf70d8c4b6f34be37ab8e844f7 /plugins/BasicHistory/src/EventList.cpp
parent397e25f2b71347c7c83495fe5b25496ff3b02b75 (diff)
warning fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@6534 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/BasicHistory/src/EventList.cpp')
-rw-r--r--plugins/BasicHistory/src/EventList.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/BasicHistory/src/EventList.cpp b/plugins/BasicHistory/src/EventList.cpp
index 4f98cb34e7..93e3440f72 100644
--- a/plugins/BasicHistory/src/EventList.cpp
+++ b/plugins/BasicHistory/src/EventList.cpp
@@ -643,7 +643,7 @@ void EventList::MargeMessages(const std::vector<IImport::ExternalMessage>& messa
dbei.cbBlob = WideCharToMultiByte(cp, 0, msg.message.c_str(), (int)msg.message.length() + 1, buf, dbei.cbBlob, NULL, NULL);
dbei.pBlob = (PBYTE)buf;
db_event_add(hContact, &dbei);
- delete buf;
+ delete [] buf;
}
}
@@ -728,7 +728,6 @@ void EventList::AddImporter(HANDLE hContact, IImport::ImportType type, const std
EnterCriticalSection(&criticalSection);
TCHAR buf[32];
mir_sntprintf(buf, SIZEOF(buf), _T("%016llx"), (unsigned long long int)hContact);
- std::wstring internalFile = contactFileDir;
ImportDiscData data;
data.file = contactFileDir + buf;
data.type = type;