From 7677b59543a8d2edc9a28f77f26ebb02492e2b5c Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 17 Nov 2016 07:17:46 -0500 Subject: AppDelegate.m: Release allocated `Mouse` instance Since we alloc-inited the mouse, we need to make sure to release it when we're done with it. Forgot to do this when I originally wrote this bit. --- Low Battery Yup d/AppDelegate.m | 1 + 1 file changed, 1 insertion(+) diff --git a/Low Battery Yup d/AppDelegate.m b/Low Battery Yup d/AppDelegate.m index 4914883..0a7d2a3 100644 --- a/Low Battery Yup d/AppDelegate.m +++ b/Low Battery Yup d/AppDelegate.m @@ -21,6 +21,7 @@ Mouse *m = [[Mouse alloc] init]; [m moveToLowBatteryOK]; [m click]; + [m release]; } @end -- cgit v1.2.3