diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-05-06 17:21:38 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-05-06 17:21:38 +0000 |
commit | f078926d87c9a272ec9588572d0ec1f53e9b1e2b (patch) | |
tree | 0adf6ebcf429902ee159b69b710837935c911502 /protocols/Tox/src/tox_network.cpp | |
parent | b158dd53ea1d868e1fa123206f7ef3c8b54112f3 (diff) |
Tox: memleaks fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@16808 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_network.cpp')
-rw-r--r-- | protocols/Tox/src/tox_network.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Tox/src/tox_network.cpp b/protocols/Tox/src/tox_network.cpp index 63db87cb5c..13182139f1 100644 --- a/protocols/Tox/src/tox_network.cpp +++ b/protocols/Tox/src/tox_network.cpp @@ -64,9 +64,9 @@ void CToxProto::BootstrapNodesFromDb(CToxThread *toxThread, bool isIPv6) void CToxProto::BootstrapNodesFromJson(CToxThread *toxThread, bool isUdp, bool isIPv6)
{
- char *json = NULL;
+ ptrA json;
- ptrT path(mir_tstrdup((TCHAR*)VARST(_T(TOX_JSON_PATH))));
+ VARST path(_T(TOX_JSON_PATH));
if (!IsFileExists(path))
UpdateNodes();
|