summaryrefslogtreecommitdiff
path: root/new/util_darwin.m
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-04-08 03:38:08 -0400
committerPietro Gagliardi <[email protected]>2015-04-08 03:38:08 -0400
commit4ab6251449b4c88869b12514f67c8731ab14c93c (patch)
tree2d732d884cb8a8e4ada340ea423321ff17e35ad3 /new/util_darwin.m
parent5597606f188833979a7dbcf4a833e55e678f6e82 (diff)
Wrote up cleanup gunk on Mac OS X. Really gunk; I don't like what all this does but I don't think there's another way.
Diffstat (limited to 'new/util_darwin.m')
-rw-r--r--new/util_darwin.m10
1 files changed, 10 insertions, 0 deletions
diff --git a/new/util_darwin.m b/new/util_darwin.m
index d8166e9..4ed562a 100644
--- a/new/util_darwin.m
+++ b/new/util_darwin.m
@@ -6,3 +6,13 @@ void setStandardControlFont(NSControl *control)
{
[control setFont:[NSFont systemFontOfSize:[NSFont systemFontSizeForControlSize:NSRegularControlSize]]];
}
+
+void uiDoFreeOnDealloc(NSMutableArray *m)
+{
+ [m enumerateObjectsUsingBlock:^(id obj, NSUInteger index, BOOL *stop) {
+ NSValue *v = (NSValue *) obj;
+
+ uiFree([v pointerValue]);
+ }];
+ [m release];
+}