summaryrefslogtreecommitdiff
path: root/utils/messages.h
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2016-12-11 16:43:48 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2016-12-11 16:43:48 +0000
commit4ad375c3b0e3f65416c02ca7b126b2e7fe375db1 (patch)
tree262bd7617cd35c041727459e3e3f34cb36fbd863 /utils/messages.h
parentba0895121b44b21d351ee69a07613f524f322617 (diff)
downloadnetsurf-4ad375c3b0e3f65416c02ca7b126b2e7fe375db1.tar.gz
netsurf-4ad375c3b0e3f65416c02ca7b126b2e7fe375db1.tar.bz2
Ensure memory used by Messages is freed on exit
Diffstat (limited to 'utils/messages.h')
-rw-r--r--utils/messages.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/utils/messages.h b/utils/messages.h
index 784e5fe6a..d4be893af 100644
--- a/utils/messages.h
+++ b/utils/messages.h
@@ -90,4 +90,12 @@ const char *messages_get_errorcode(nserror code);
char *messages_get_buff(const char *key, ...);
+/**
+ * Free memory used by the standard Messages hash
+ *
+ * \param code errorcode of message
+ * \return message text
+ */
+void messages_destroy(void);
+
#endif