diff options
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");
}
|