forked from github/server
Merge branch 'feature/tests-leaks' of github.com:ennorehling/eressea into feature/tests-leaks
This commit is contained in:
commit
9f6fa5b948
|
@ -13,6 +13,7 @@
|
|||
#endif
|
||||
#include <triggers/triggers.h>
|
||||
#include <util/language.h>
|
||||
#include <util/functions.h>
|
||||
#include <kernel/xmlreader.h>
|
||||
#include <kernel/item.h>
|
||||
#include <kernel/building.h>
|
||||
|
@ -46,6 +47,7 @@ void game_done(void)
|
|||
#endif
|
||||
calendar_cleanup();
|
||||
#endif
|
||||
free_functions();
|
||||
kernel_done();
|
||||
}
|
||||
|
||||
|
|
|
@ -48,3 +48,7 @@ void register_function(pf_generic fun, const char *name)
|
|||
len = cb_new_kv(name, len, &fun, sizeof(fun), buffer);
|
||||
cb_insert(&cb_functions, buffer, len);
|
||||
}
|
||||
|
||||
void free_functions(void) {
|
||||
cb_clear(&cb_functions);
|
||||
}
|
|
@ -26,6 +26,7 @@ extern "C" {
|
|||
|
||||
pf_generic get_function(const char *name);
|
||||
void register_function(pf_generic fun, const char *name);
|
||||
void free_functions(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue