summaryrefslogtreecommitdiff
path: root/apple_remote
diff options
context:
space:
mode:
authorDouglas Mencken <dougmencken@gmail.com>2016-03-07 06:23:31 -0500
committerStephan Bergmann <sbergman@redhat.com>2016-03-07 16:07:19 +0000
commitd676bd620afe47a0b7a445d864bfcdd2e6e3473f (patch)
tree06e746c70bfe9fd7c562abeb46af2b85fc1a8fe1 /apple_remote
parent487ba71c9ea30fe3b77dfc15e86d67f44c7cc79a (diff)
apple_remote: autorelease --> release in dealloc (destructor)
using autorelease here leads to “just leaking” because there's no autorelease pool for thread besides, make sure that released fields do not contain used•to•be•a•valid•pointer value Change-Id: Id6cb37643230f64dbe9f6128f52236f04d0c88e4 Reviewed-on: https://gerrit.libreoffice.org/22981 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'apple_remote')
-rw-r--r--apple_remote/source/RemoteMainController.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/apple_remote/source/RemoteMainController.m b/apple_remote/source/RemoteMainController.m
index 1972c5fc523f..79af22fd9f3e 100644
--- a/apple_remote/source/RemoteMainController.m
+++ b/apple_remote/source/RemoteMainController.m
@@ -155,9 +155,9 @@
}
- (void) dealloc {
- [remoteControl autorelease];
- [remoteControlBehavior autorelease];
- [super dealloc];
+ [ remoteControl release ]; remoteControl = nil;
+ [ remoteControlBehavior release ]; remoteControlBehavior = nil;
+ [super dealloc];
}
// for bindings access