Browse code

Rename choices_free to choices_destroy

To clarify that we aren't freeing the choices structure, just the
buffers associated with it.

John Hawthorn authored on 03/05/2016 04:45:26
Showing 2 changed files

... ...
@@ -97,7 +97,7 @@ void choices_init(choices_t *c) {
97 97
 	choices_reset_search(c);
98 98
 }
99 99
 
100
-void choices_free(choices_t *c) {
100
+void choices_destroy(choices_t *c) {
101 101
 	free(c->buffer);
102 102
 	c->buffer = NULL;
103 103
 	c->buffer_size = 0;
... ...
@@ -24,7 +24,7 @@ typedef struct {
24 24
 
25 25
 void choices_init(choices_t *c);
26 26
 void choices_fread(choices_t *c, FILE *file);
27
-void choices_free(choices_t *c);
27
+void choices_destroy(choices_t *c);
28 28
 void choices_add(choices_t *c, const char *choice);
29 29
 size_t choices_available(choices_t *c);
30 30
 void choices_search(choices_t *c, const char *search);