aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2016-11-17 07:17:46 -0500
committerTeddy Wing2016-11-17 07:17:46 -0500
commit7677b59543a8d2edc9a28f77f26ebb02492e2b5c (patch)
treece59c43e31bf0acc3688585c863ffd34ed8b76b5
parent0a5635ac539b988e93bb31c08a9101e65deeb5ad (diff)
downloadLow-Battery-Yup-7677b59543a8d2edc9a28f77f26ebb02492e2b5c.tar.bz2
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.
-rw-r--r--Low Battery Yup d/AppDelegate.m1
1 files changed, 1 insertions, 0 deletions
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