aboutsummaryrefslogtreecommitdiffstats
path: root/libcontacts_chat_destroy.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libcontacts_chat_destroy.c12
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);
+}