From 44555cbf80933e0fad4686341676fe345b1faff3 Mon Sep 17 00:00:00 2001 From: mataes2007 Date: Sun, 24 Apr 2011 18:36:28 +0000 Subject: stopspam: added x64 configurations added destroing functions on exit git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@29 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb --- stopspam/src/events.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'stopspam/src/events.cpp') diff --git a/stopspam/src/events.cpp b/stopspam/src/events.cpp index fa73a07..74d4195 100644 --- a/stopspam/src/events.cpp +++ b/stopspam/src/events.cpp @@ -46,13 +46,15 @@ MIRANDA_HOOK_EVENT(ME_DB_EVENT_ADDED, wParam, lParam) #ifdef _UNICODE AuthRepl=mir_u2a(variables_parse(plSets->AuthRepl.Get(), hcntct).c_str()); #else - AuthRepl=mir_strdup( variables_parse(plSets->AuthRepl.Get(), hcntct).c_str()); + AuthRepl=variables_parse(plSets->AuthRepl.Get(), hcntct).c_str(); #endif // ...send message std::string allowService = dbei.szModule; allowService += PS_AUTHDENY; CallService(allowService.c_str(), (WPARAM)hDbEvent, (LPARAM)AuthRepl); - mir_free(AuthRepl); + #ifdef _UNICODE + mir_free(AuthRepl); + #endif DBWriteContactSettingByte(hcntct, "CList", "NotOnList", 1); DBWriteContactSettingByte(hcntct, "CList", "Hidden", 1); if (!plSets->HistLog.Get()) -- cgit v1.2.3