summaryrefslogtreecommitdiff
path: root/protocols/Gadu-Gadu/avatar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Gadu-Gadu/avatar.cpp')
-rw-r--r--protocols/Gadu-Gadu/avatar.cpp3
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);
}