Revision: 4494
http://skim-app.svn.sourceforge.net/skim-app/?rev=4494&view=rev
Author: hofman
Date: 2008-09-01 11:01:49 +0000 (Mon, 01 Sep 2008)
Log Message:
-----------
Release remote control instance when it's not instantiated because the device
not available.
Modified Paths:
--------------
trunk/vendorsrc/martinkahr/RemoteControlWrapper/HIDRemoteControlDevice.m
Modified:
trunk/vendorsrc/martinkahr/RemoteControlWrapper/HIDRemoteControlDevice.m
===================================================================
--- trunk/vendorsrc/martinkahr/RemoteControlWrapper/HIDRemoteControlDevice.m
2008-09-01 10:26:11 UTC (rev 4493)
+++ trunk/vendorsrc/martinkahr/RemoteControlWrapper/HIDRemoteControlDevice.m
2008-09-01 11:01:49 UTC (rev 4494)
@@ -68,7 +68,10 @@
}
- (id) initWithDelegate: (id) _remoteControlDelegate {
- if ([[self class] isRemoteAvailable] == NO) return nil;
+ if ([[self class] isRemoteAvailable] == NO) {
+ [self release];
+ return nil;
+ }
if ( self = [super initWithDelegate: _remoteControlDelegate] ) {
openInExclusiveMode = YES;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit