From f078926d87c9a272ec9588572d0ec1f53e9b1e2b Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Fri, 6 May 2016 17:21:38 +0000 Subject: Tox: memleaks fix git-svn-id: http://svn.miranda-ng.org/main/trunk@16808 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_network.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/Tox/src/tox_network.cpp') 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(); -- cgit v1.2.3