summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2010-04-10 03:51:13 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2010-04-10 03:51:13 +0300
commit1ae39fd58a92c1d19b2991ecf53d617794949b2b (patch)
treee4a04215ee0d24bf82f8318af46808d8282deabe
parent6ea93234f4190fec5234f79855455949626d0805 (diff)
memory cleaning
-rw-r--r--stopspam.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/stopspam.cpp b/stopspam.cpp
index f029665..c4a3df7 100644
--- a/stopspam.cpp
+++ b/stopspam.cpp
@@ -55,7 +55,10 @@ MIRANDA_HOOK_EVENT(ME_DB_EVENT_ADDED, wParam, lParam)
DBWriteContactSettingTString(hcntct, "CList", "Group", gbSpammersGroup.c_str());
if(gbIgnoreURL)
if(Stristr(EventText, _T("http")) || Stristr(EventText, _T("www")) || Stristr(EventText, _T(".ru")) || Stristr(EventText, _T(".com")) || Stristr(EventText, _T(".de")) || Stristr(EventText, _T(".cz")) || Stristr(EventText, _T(".org")) || Stristr(EventText, _T(".net")) || Stristr(EventText, _T(".su")))
+ {
+ mir_free(EventText);
return 1;
+ }
BYTE msg = 1;
if(gbInvisDisable)
{