From a38024c781524e326e3319c7b9f9f037ee01ba00 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 10 Apr 2015 13:24:34 -0400 Subject: Eliminated direct use of strdup(); introduced uiDarwinNSStringToText() to do that work for us (and abort on failure). --- new/checkbox_darwin.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'new/checkbox_darwin.m') diff --git a/new/checkbox_darwin.m b/new/checkbox_darwin.m index a07a4d0..ca52389 100644 --- a/new/checkbox_darwin.m +++ b/new/checkbox_darwin.m @@ -57,7 +57,7 @@ char *uiCheckboxText(uiControl *c) uiCheckboxNSButton *cc; cc = (uiCheckboxNSButton *) uiControlHandle(c); - return strdup(fromNSString([cc title])); + return uiDarwinNSStringToText([cc title]); } void uiCheckboxSetText(uiControl *c, const char *text) -- cgit v1.2.3