From 66f309ee1e14779999c6a68d85e11c6ac219fbcc Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Fri, 18 Sep 2015 16:06:28 +0000 Subject: Tox: - attempt to fix one more crash (fixes #1039) git-svn-id: http://svn.miranda-ng.org/main/trunk@15383 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_core.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'protocols/Tox/src') diff --git a/protocols/Tox/src/tox_core.cpp b/protocols/Tox/src/tox_core.cpp index 5cb7e90cb6..25e35c84dd 100644 --- a/protocols/Tox/src/tox_core.cpp +++ b/protocols/Tox/src/tox_core.cpp @@ -51,8 +51,10 @@ bool CToxProto::InitToxCore() if (LoadToxProfile(options)) { - if (toxThread == NULL) + if (toxThread == NULL) { + tox_options_free(options); return false; + } TOX_ERR_NEW initError; toxThread->tox = tox_new(options, &initError); -- cgit v1.2.3