From f4ddf8de528cb486816ed9a4e9e51b51a7b1b142 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Fri, 12 Sep 2014 19:17:35 +0000 Subject: Tox: rename tox profile together with miranda account git-svn-id: http://svn.miranda-ng.org/main/trunk@10440 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_proto.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'protocols/Tox/src/tox_proto.cpp') diff --git a/protocols/Tox/src/tox_proto.cpp b/protocols/Tox/src/tox_proto.cpp index 2461aa0518..d1e71ed376 100644 --- a/protocols/Tox/src/tox_proto.cpp +++ b/protocols/Tox/src/tox_proto.cpp @@ -3,6 +3,8 @@ CToxProto::CToxProto(const char* protoName, const TCHAR* userName) : PROTO(protoName, userName) { + accountName = mir_tstrdup(userName); + InitToxCore(); CreateProtoService(PS_CREATEACCMGRUI, &CToxProto::OnAccountManagerInit); @@ -42,6 +44,8 @@ PROTO(protoName, userName) CToxProto::~CToxProto() { UninitToxCore(); + + mir_free(accountName); } DWORD_PTR __cdecl CToxProto::GetCaps(int type, MCONTACT hContact) -- cgit v1.2.3