diff options
author | Mattias Andrée <maandree@kth.se> | 2021-04-02 13:17:25 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-04-02 13:21:07 +0200 |
commit | 8b52cc7243c2e0e4ef17db5583999030b8636584 (patch) | |
tree | 29d4985285ecbbce2c7ec1cf61837ede3fccf526 /libcontacts_chat_destroy.c | |
download | libcontacts-8b52cc7243c2e0e4ef17db5583999030b8636584.tar.gz libcontacts-8b52cc7243c2e0e4ef17db5583999030b8636584.tar.bz2 libcontacts-8b52cc7243c2e0e4ef17db5583999030b8636584.tar.xz |
First commit
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libcontacts_chat_destroy.c')
-rw-r--r-- | libcontacts_chat_destroy.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libcontacts_chat_destroy.c b/libcontacts_chat_destroy.c new file mode 100644 index 0000000..7e5498a --- /dev/null +++ b/libcontacts_chat_destroy.c @@ -0,0 +1,12 @@ +/* See LICENSE file for copyright and license details. */ +#include "common.h" + + +void +libcontacts_chat_destroy(struct libcontacts_chat *this) +{ + free(this->context); + free(this->service); + free(this->address); + DESTROY_ALL(this->unrecognised_data, free); +} |