summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/api_main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Tox/src/api_main.cpp')
-rw-r--r--protocols/Tox/src/api_main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/protocols/Tox/src/api_main.cpp b/protocols/Tox/src/api_main.cpp
index cc46abcb63..5473c88f6f 100644
--- a/protocols/Tox/src/api_main.cpp
+++ b/protocols/Tox/src/api_main.cpp
@@ -19,8 +19,7 @@ Tox *tox_new(const struct Tox_Options *options, TOX_ERR_NEW *error)
void tox_kill(Tox *tox)
{
- CreateFunction<int(*)(const Tox*)>(__FUNCTION__)(tox);
- tox = NULL;
+ CreateFunction<int(*)(Tox*)>(__FUNCTION__)(tox);
}
void tox_self_get_address(const Tox *tox, uint8_t *address)