From 7b1dfbf1d6de954efdb5d9d9d4df61a98935ddd4 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 7 Apr 2015 19:04:09 -0400 Subject: Unified the allocators across all platforms so that everyone uses uiAlloc() and friends. --- new/button_unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'new/button_unix.c') diff --git a/new/button_unix.c b/new/button_unix.c index 2d341cc..9c6fa2b 100644 --- a/new/button_unix.c +++ b/new/button_unix.c @@ -26,7 +26,7 @@ uiControl *uiNewButton(const char *text) GParameter props[1]; GtkWidget *widget; - b = g_new0(struct button, 1); + b = uiNew(struct button); props[0].name = "label"; g_value_init(&(props[0].value), G_TYPE_STRING); -- cgit v1.2.3