summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2016-03-21 11:16:29 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2016-03-21 11:16:29 +0000
commitce1bf81b56ff2dad89b1f783d6377b20eebea0a4 (patch)
tree3e01a51a472b6930eef6530d6e3f7f349f2187fb
parent2e2455779068f117e25bbb600d22f9f84aeb90a0 (diff)
VK: memleak fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@16521 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--protocols/VKontakte/src/misc.cpp2
-rw-r--r--protocols/VKontakte/src/stdafx.h8
2 files changed, 1 insertions, 9 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp
index d22fa90ad8..5d9edd9364 100644
--- a/protocols/VKontakte/src/misc.cpp
+++ b/protocols/VKontakte/src/misc.cpp
@@ -1298,7 +1298,7 @@ void CVkProto::ShowCaptchaInBrowser(HBITMAP hBitmap)
fii->FI_AcquireMemory(hMem, &buf, &bufLen);
ptrA base64(mir_base64_encode(buf, bufLen));
fii->FI_CloseMemory(hMem);
-
+ fii->FI_Unload(dib);
CMStringA szHTML(FORMAT, "<html><body><img src=\"data:image/png;base64,%s\" /></body></html>", base64);
fwrite(szHTML, 1, szHTML.GetLength(), pFile);
diff --git a/protocols/VKontakte/src/stdafx.h b/protocols/VKontakte/src/stdafx.h
index 651856837f..8495a2dbd0 100644
--- a/protocols/VKontakte/src/stdafx.h
+++ b/protocols/VKontakte/src/stdafx.h
@@ -18,8 +18,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
#include <Windows.h>
-#include <Shlwapi.h>
-#include <Wincrypt.h>
#include <stdio.h>
#include <malloc.h>
@@ -35,13 +33,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <m_chat.h>
#include <m_clist.h>
#include <m_database.h>
-#include <m_extraicons.h>
#include <m_file.h>
-#include <m_fontservice.h>
#include <m_genmenu.h>
-#include <m_hotkeys.h>
#include <m_icolib.h>
-#include <m_idle.h>
#include <m_imgsrvc.h>
#include <m_string.h>
#include <m_json.h>
@@ -53,9 +47,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <m_protoint.h>
#include <m_skin.h>
#include <m_timezones.h>
-#include <m_toptoolbar.h>
#include <m_userinfo.h>
-#include <m_utils.h>
#include <m_proto_listeningto.h>
#include <m_messagestate.h>