diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-04-16 19:05:28 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-04-16 19:05:28 +0000 |
commit | ace17434152e4d20114d362b6be0118d8f0aaf3d (patch) | |
tree | 3509f7171a5c182ca2255a8a8bd2f8a3b2e1bc63 /protocols/Tox | |
parent | 4aa4e089488e3b6bb68e435d9f5ed697dd9ffc93 (diff) |
Tox:
- Fixed memory leak
git-svn-id: http://svn.miranda-ng.org/main/trunk@12872 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox')
-rw-r--r-- | protocols/Tox/src/tox_profile.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/protocols/Tox/src/tox_profile.cpp b/protocols/Tox/src/tox_profile.cpp index f17e3f33d1..5f13f07f4f 100644 --- a/protocols/Tox/src/tox_profile.cpp +++ b/protocols/Tox/src/tox_profile.cpp @@ -86,7 +86,7 @@ bool CToxProto::LoadToxProfile(Tox_Options *options) mir_free(data);
return false;
}
-
+ mir_free(data);
debugLogA(__FUNCTION__": tox profile load successfully");
return true;
}
@@ -122,7 +122,6 @@ void CToxProto::SaveToxProfile() size_t written = fwrite(data, sizeof(char), size, profile);
if (size != written)
{
- fclose(profile);
debugLogA(__FUNCTION__": failed to write tox profile");
}
|