diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2011-05-16 21:16:44 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2011-05-16 21:16:44 +0000 |
commit | b92ca9cd30ef1aefcd15898110fcd2d9c84daf63 (patch) | |
tree | 60099a44b4178460a944dc2cc6824bf59a94e969 /content/content_factory.c | |
parent | 955896ac4676f5341daf4a6974a737eae2888d7a (diff) | |
download | netsurf-b92ca9cd30ef1aefcd15898110fcd2d9c84daf63.tar.gz netsurf-b92ca9cd30ef1aefcd15898110fcd2d9c84daf63.tar.bz2 |
Clean up after content factory
svn path=/trunk/netsurf/; revision=12415
Diffstat (limited to 'content/content_factory.c')
-rw-r--r-- | content/content_factory.c | 18 |
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 |