From 4afca8f2c2f8a797263d54651366f9f1fbc2c09c Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 10 Apr 2015 23:24:21 -0400 Subject: More of the previous commit. More TODOs. --- new/newcontrol_darwin.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'new/newcontrol_darwin.m') diff --git a/new/newcontrol_darwin.m b/new/newcontrol_darwin.m index 1fff8a8..5f70075 100644 --- a/new/newcontrol_darwin.m +++ b/new/newcontrol_darwin.m @@ -14,7 +14,7 @@ static void singleDestroy(uiControl *c) { singleView *s = (singleView *) (c->internal); - [deletedControlsView addSubview:s->immediate]; + [destroyedControlsView addSubview:s->immediate]; } static uintptr_t singleHandle(uiControl *c) @@ -117,7 +117,7 @@ BOOL uiDarwinControlFreeWhenAppropriate(uiControl *c, NSView *newSuperview) { singleView *s = (singleView *) (c->internal); - if (newSuperview == deletedControlsView) { + if (newSuperview == destroyedControlsView) { [s->immediate release]; // we don't need the reference anymore uiFree(s); uiFree(c); -- cgit v1.2.3