Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix warnings when not using ARC

  • Loading branch information...
commit 713ae50e80257554043c3fa9dbb64f63d02dc2a6 1 parent a454694
@andrewrothman authored
View
2  peertalk/PTChannel.h
@@ -19,7 +19,7 @@
@property (strong) id<PTChannelDelegate> delegate;
// Communication protocol. Must not be nil.
-@property PTProtocol *protocol;
+@property (nonatomic, retain) PTProtocol *protocol;
// YES if this channel is a listening server
@property (readonly) BOOL isListening;
View
8 peertalk/PTChannel.m
@@ -94,6 +94,10 @@ - (id)init {
- (void)dealloc {
if (dispatchObj_.channel) dispatch_release(dispatchObj_.channel);
else if (dispatchObj_.source) dispatch_release(dispatchObj_.source);
+
+#if !__has_feature(objc_arc)
+ [super dealloc];
+#endif
}
@@ -615,6 +619,10 @@ - (void)dealloc {
if (dispatchData_) dispatch_release(dispatchData_);
data_ = NULL;
length_ = 0;
+
+#if !__has_feature(objc_arc)
+ [super dealloc];
+#endif
}
#pragma mark - NSObject
View
8 peertalk/PTProtocol.m
@@ -83,6 +83,10 @@ - (void)dealloc {
if (queue_) {
dispatch_release(queue_);
}
+
+#if !__has_feature(objc_arc)
+ [super dealloc];
+#endif
}
- (dispatch_queue_t)queue {
@@ -302,6 +306,10 @@ - (id)initWithDispatchData:(dispatch_data_t)dispatchData {
}
- (void)dealloc {
if (dispatchData_) dispatch_release(dispatchData_);
+
+#if !__has_feature(objc_arc)
+ [super dealloc];
+#endif
}
@end
View
4 peertalk/PTUSBHub.m
@@ -301,6 +301,10 @@ - (void)dealloc {
dispatch_release(channel_);
channel_ = nil;
}
+
+#if !__has_feature(objc_arc)
+ [super dealloc];
+#endif
}

0 comments on commit 713ae50

Please sign in to comment.
Something went wrong with that request. Please try again.