ui/gtk/toolkit.c

branch
newapi
changeset 350
70305d427f25
parent 344
870dd3d41d83
equal deleted inserted replaced
349:d188f52cff7f 350:70305d427f25
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 }

mercurial