summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-09-18 16:06:28 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-09-18 16:06:28 +0000
commit66f309ee1e14779999c6a68d85e11c6ac219fbcc (patch)
tree63e942bffec9db34ddfada21cc710bf6ab2254ef
parent88af57f7a8684af4a33eb71d0e4736ae5d2e7a7d (diff)
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
-rw-r--r--protocols/Tox/src/tox_core.cpp4
1 files changed, 3 insertions, 1 deletions
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);