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>
This commit is contained in:
Douglas Mencken 2016-03-07 06:23:31 -05:00 committed by Stephan Bergmann
parent 487ba71c9e
commit d676bd620a

View file

@ -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