This commit is contained in:
Behdad Esfahbod 2012-04-25 00:14:46 -04:00
parent 1827dc208c
commit a5e39fed85
2 changed files with 4 additions and 0 deletions

View File

@ -38,6 +38,8 @@ struct _hb_set_t
inline void init (void) {
clear ();
}
inline void fini (void) {
}
inline void clear (void) {
memset (elts, 0, sizeof elts);
}

View File

@ -67,6 +67,8 @@ hb_set_destroy (hb_set_t *set)
{
if (!hb_object_destroy (set)) return;
set->fini ();
free (set);
}