ui/common/context.c

changeset 164
1d912f78fd1d
parent 163
b70e2a77dea0
child 167
161511838ea6
--- a/ui/common/context.c	Sat Dec 05 17:50:22 2020 +0100
+++ b/ui/common/context.c	Sun Dec 06 14:41:37 2020 +0100
@@ -188,6 +188,7 @@
 void* uic_create_value(UiContext *ctx, UiVarType type) {
     void *val = NULL;
     switch(type) {
+        case UI_VAR_SPECIAL: break;
         case UI_VAR_INTEGER: {
             val = ui_int_new(ctx, NULL);
             break;
@@ -305,6 +306,7 @@
 
 void uic_unbind_var(UiVar *var) {
     switch(var->type) {
+        case UI_VAR_SPECIAL: break;
         case UI_VAR_INTEGER: uic_int_unbind(var->value); break;
         case UI_VAR_DOUBLE: uic_double_unbind(var->value); break;
         case UI_VAR_STRING: uic_string_unbind(var->value); break;

mercurial