294 |
294 |
295 void ui_destroy_boundvar(UiContext *ctx, UiVar *var) { |
295 void ui_destroy_boundvar(UiContext *ctx, UiVar *var) { |
296 uic_unbind_var(var); |
296 uic_unbind_var(var); |
297 |
297 |
298 if(var->type == UI_VAR_SPECIAL) { |
298 if(var->type == UI_VAR_SPECIAL) { |
299 free(var); |
299 ui_free(var->from_ctx, var); |
300 } else { |
300 } else { |
301 ui_free(var->from_ctx, var); |
301 ui_free(var->from_ctx, var); |
302 // TODO: free or unbound |
302 // TODO: free or unbound |
303 //uic_remove_bound_var(ctx, var); |
303 //uic_remove_bound_var(ctx, var); |
304 } |
304 } |