diff options
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;
}
|