summaryrefslogtreecommitdiff
path: root/content/content_factory.c
diff options
context:
space:
mode:
Diffstat (limited to 'content/content_factory.c')
-rw-r--r--content/content_factory.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/content/content_factory.c b/content/content_factory.c
index 95e7679ad..ae226a4d1 100644
--- a/content/content_factory.c
+++ b/content/content_factory.c
@@ -45,6 +45,24 @@ typedef struct content_handler_entry {
static content_handler_entry *content_handlers;
/**
+ * Clean up after the content factory
+ */
+void content_factory_fini(void)
+{
+ content_handler_entry *victim;
+
+ while (content_handlers != NULL) {
+ victim = content_handlers;
+
+ content_handlers = content_handlers->next;
+
+ lwc_string_unref(victim->mime_type);
+
+ free(victim);
+ }
+}
+
+/**
* Register a handler with the content factory
*
* \param mime_type MIME type to handle