aboutsummaryrefslogtreecommitdiffstats
path: root/src/listbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/listbox.c')
-rw-r--r--src/listbox.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/listbox.c b/src/listbox.c
index c886dce..a109b7f 100644
--- a/src/listbox.c
+++ b/src/listbox.c
@@ -97,8 +97,8 @@ void listbox_load_items(struct listbox *lb, int item_count)
free(lb->type);
free(lb->ch);
- lb->type = xmalloc(item_count * sizeof(unsigned));
- lb->ch = xmalloc((item_count + 1) * sizeof(unsigned));
+ lb->type = mem_malloc(item_count * sizeof(unsigned));
+ lb->ch = mem_malloc((item_count + 1) * sizeof(unsigned));
for (i = 0, ch = 0; i < item_count; i++) {
lb->type[i] = lb->fn_type(i, lb->cb_data);
lb->ch[i] = ch;