From ee2e419778605a5445474a33a29f2cfbb7eed245 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 17 Jul 2012 08:35:51 +0000 Subject: bunch of fixes for various memory-related problems git-svn-id: http://svn.miranda-ng.org/main/trunk@1001 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Gadu-Gadu/avatar.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'protocols') diff --git a/protocols/Gadu-Gadu/avatar.cpp b/protocols/Gadu-Gadu/avatar.cpp index 2dc6de1bbd..ace7871b6a 100644 --- a/protocols/Gadu-Gadu/avatar.cpp +++ b/protocols/Gadu-Gadu/avatar.cpp @@ -299,7 +299,6 @@ void GGPROTO::uninitavatarrequestthread() void __cdecl GGPROTO::getuseravatarthread(void*) { - PROTO_AVATAR_INFORMATIONT pai = {0}; char *AvatarURL; int AvatarType; @@ -310,7 +309,9 @@ void __cdecl GGPROTO::getuseravatarthread(void*) db_unset(NULL, m_szModuleName, GG_KEY_AVATARURL); db_set_b(NULL, m_szModuleName, GG_KEY_AVATARTYPE, (BYTE)AvatarType); db_set_b(NULL, m_szModuleName, GG_KEY_AVATARREQUESTED, 1); + mir_free(AvatarURL); + PROTO_AVATAR_INFORMATIONT pai = {0}; pai.cbSize = sizeof(pai); getavatarinfo((WPARAM)GAIF_FORCE, (LPARAM)&pai); } -- cgit v1.2.3