diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-17 08:35:51 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-17 08:35:51 +0000 |
commit | ee2e419778605a5445474a33a29f2cfbb7eed245 (patch) | |
tree | 404194e1d202f6433693f3833792e940c04e2d7e /protocols | |
parent | 1ca120b165c2f2d9f521a04bfc31c7956d2ce422 (diff) |
bunch of fixes for various memory-related problems
git-svn-id: http://svn.miranda-ng.org/main/trunk@1001 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/Gadu-Gadu/avatar.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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);
}
|