Use MALLOC for ui_add_gadget_checkbox

This commit is contained in:
Kp 2013-07-07 19:55:59 +00:00
parent 4abda27dd8
commit 7aa4c2a55a

View file

@ -68,7 +68,7 @@ UI_GADGET_CHECKBOX * ui_add_gadget_checkbox( UI_DIALOG * dlg, short x, short y,
checkbox = (UI_GADGET_CHECKBOX *)ui_gadget_add( dlg, 5, x, y, x+w-1, y+h-1 );
checkbox->text = d_malloc(strlen(text) + 5);
MALLOC(checkbox->text, char, strlen(text) + 5);
strcpy(checkbox->text,text);
checkbox->width = w;
checkbox->height = h;