diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2016-12-11 16:43:48 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2016-12-11 16:43:48 +0000 |
commit | 4ad375c3b0e3f65416c02ca7b126b2e7fe375db1 (patch) | |
tree | 262bd7617cd35c041727459e3e3f34cb36fbd863 /utils/messages.h | |
parent | ba0895121b44b21d351ee69a07613f524f322617 (diff) | |
download | netsurf-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.h | 8 |
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 |