aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--AppKit/GTMNSWorkspace+Running.m2
-rw-r--r--Foundation/GTMTransientRootProxy.m6
2 files changed, 3 insertions, 5 deletions
diff --git a/AppKit/GTMNSWorkspace+Running.m b/AppKit/GTMNSWorkspace+Running.m
index 9ca28f4..82c2fa5 100644
--- a/AppKit/GTMNSWorkspace+Running.m
+++ b/AppKit/GTMNSWorkspace+Running.m
@@ -68,7 +68,7 @@ NSString *const kGTMWorkspaceRunningBundleVersion = @"CFBundleVersion";
return dict;
}
-- (NSDictionary *)gtm_processInfoDictionaryForPSN:(ProcessSerialNumberPtr)psn {
+- (NSDictionary *)gtm_processInfoDictionaryForPSN:(ProcessSerialNumberPtr const)psn {
NSDictionary *dict = nil;
if (psn) {
CFDictionaryRef cfDict
diff --git a/Foundation/GTMTransientRootProxy.m b/Foundation/GTMTransientRootProxy.m
index 04591d3..3d34bda 100644
--- a/Foundation/GTMTransientRootProxy.m
+++ b/Foundation/GTMTransientRootProxy.m
@@ -199,15 +199,13 @@
}
- (void)releaseRealProxy {
- BOOL connectionChanged = NO;
@synchronized (self) {
[[NSNotificationCenter defaultCenter] removeObserver:self];
// Only trigger if we had a proxy before
if (realProxy_) {
- connectionChanged = YES;
+ [realProxy_ release];
+ realProxy_ = nil;
}
- [realProxy_ release];
- realProxy_ = nil;
}
}