From ace17434152e4d20114d362b6be0118d8f0aaf3d Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Thu, 16 Apr 2015 19:05:28 +0000 Subject: Tox: - Fixed memory leak git-svn-id: http://svn.miranda-ng.org/main/trunk@12872 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_profile.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'protocols/Tox') 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"); } -- cgit v1.2.3