diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-11-04 15:06:58 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-11-04 15:06:58 +0000 |
commit | ebac750ead171387c039ef4c912de307af487425 (patch) | |
tree | 3e27c72a3401d89a293459195183cb2ac4224d4f /protocols/Tox/src/tox_core.cpp | |
parent | 254c9c779a5d68b13710db21cc4d7f70b4c2eadc (diff) |
Tox: one more crash fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@15679 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_core.cpp')
-rw-r--r-- | protocols/Tox/src/tox_core.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/protocols/Tox/src/tox_core.cpp b/protocols/Tox/src/tox_core.cpp index fd6452745a..bcc75eb436 100644 --- a/protocols/Tox/src/tox_core.cpp +++ b/protocols/Tox/src/tox_core.cpp @@ -128,8 +128,11 @@ void CToxProto::UninitToxCore(CToxThread *toxThread) SaveToxProfile();
- tox_kill(toxThread->tox);
- toxThread->tox = NULL;
+ if (toxThread->tox != NULL)
+ {
+ tox_kill(toxThread->tox);
+ toxThread->tox = NULL;
+ }
}
toxThread = NULL;
}
|