don't free the UiModel after it is given to the table

Tue, 11 Jun 2024 21:22:11 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Tue, 11 Jun 2024 21:22:11 +0200
changeset 36
9f3448a10d11
parent 35
834d9c15a69f
child 37
9b754f1b7e16

don't free the UiModel after it is given to the table

application/window.c file | annotate | diff | comparison | revisions
--- a/application/window.c	Sun Jun 09 17:00:22 2024 +0200
+++ b/application/window.c	Tue Jun 11 21:22:11 2024 +0200
@@ -75,8 +75,6 @@
 		ui_label(obj, .label = "");
 	}
 
-	ui_model_free(obj->ctx, model);
-
 	return obj;
 }
 

mercurial