From 1ae39fd58a92c1d19b2991ecf53d617794949b2b Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Sat, 10 Apr 2010 03:51:13 +0300 Subject: memory cleaning --- stopspam.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'stopspam.cpp') 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) { -- cgit v1.2.3