439:bf7084544cb1 | 440:7c4b9cba09ca |
---|---|
115 | 115 |
116 return list; | 116 return list; |
117 } | 117 } |
118 | 118 |
119 void ui_list_free(UiList *list) { | 119 void ui_list_free(UiList *list) { |
120 cxListDestroy(list->data); | 120 cxListFree(list->data); |
121 free(list); | 121 free(list); |
122 } | 122 } |
123 | 123 |
124 void* ui_list_first(UiList *list) { | 124 void* ui_list_first(UiList *list) { |
125 list->iter = (void*)(intptr_t)0; | 125 list->iter = (void*)(intptr_t)0; |
211 cx_foreach(UiColumn*, c, iter) { | 211 cx_foreach(UiColumn*, c, iter) { |
212 info->types[i] = c->type; | 212 info->types[i] = c->type; |
213 info->titles[i] = c->name; | 213 info->titles[i] = c->name; |
214 i++; | 214 i++; |
215 } | 215 } |
216 cxListDestroy(cols); | 216 cxListFree(cols); |
217 | 217 |
218 return info; | 218 return info; |
219 } | 219 } |
220 | 220 |
221 UiModel* ui_model_copy(UiContext *ctx, UiModel* model) { | 221 UiModel* ui_model_copy(UiContext *ctx, UiModel* model) { |