From c32a50e63c5ae55bbbf813ad9f4977f0f12dea9e Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 28 Apr 2015 13:09:49 -0400 Subject: [PATCH] Fixed runtime errors. Unix backend migrated! --- new/unix/container.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/new/unix/container.c b/new/unix/container.c index da0ebee8..1aaf891a 100644 --- a/new/unix/container.c +++ b/new/unix/container.c @@ -120,7 +120,6 @@ static void containerDestroy(uiControl *cc) if (c->parent != NULL) complain("attempt to destroy uiContainer %p while it has a parent", cc); g_object_unref(c); // release our initial reference, which destroys the widget - uiFree(c); } static uintptr_t containerHandle(uiControl *cc) @@ -215,6 +214,7 @@ void uiMakeContainer(uiContainer *cc) containerWidget *c; c = containerWidget(g_object_new(containerWidgetType, NULL)); + c->c = cc; // keep a reference to our container so it stays alive when reparented g_object_ref_sink(c); // and make it visible