NSMutableSet * keys;
}
-+ (void)load;
- (LyXLinkBackClient *)init;
- (BOOL)edit:(NSString *)fileName;
@end
@implementation LyXLinkBackClient
-+ (void)load
-{
- pool = [[NSAutoreleasePool alloc] init];
-}
-
- (LyXLinkBackClient *)init
{
self = [super init];
void closeAllLinkBackLinks()
{
- [linkBackClient release];
- linkBackClient = nil;
-
- [pool drain];
- pool = nil;
+ if (linkBackClient != nil) {
+ [linkBackClient release];
+ linkBackClient = nil;
+ }
+
+ if (pool != nil) {
+ [pool drain];
+ pool = nil;
+ }
}