aboutsummaryrefslogtreecommitdiffstats
path: root/libcontacts_address_destroy.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcontacts_address_destroy.c')
-rw-r--r--libcontacts_address_destroy.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/libcontacts_address_destroy.c b/libcontacts_address_destroy.c
new file mode 100644
index 0000000..1a79f21
--- /dev/null
+++ b/libcontacts_address_destroy.c
@@ -0,0 +1,15 @@
+/* See LICENSE file for copyright and license details. */
+#include "common.h"
+
+
+void
+libcontacts_address_destroy(struct libcontacts_address *this)
+{
+ free(this->context);
+ free(this->country);
+ free(this->care_of);
+ free(this->address);
+ free(this->postcode);
+ free(this->city);
+ DESTROY_ALL(this->unrecognised_data, free);
+}