Skip to content

Commit 7b2ce2c

Browse files
committed
No need to alter properties in dealloc
1 parent 33d2d11 commit 7b2ce2c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

macosx/VDKQueue/VDKQueue.mm

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
/// This is a simple model class used to hold info about each path we watch.
4040
@interface VDKQueuePathEntry : NSObject
4141

42-
@property(atomic, copy) NSString* path;
43-
@property(atomic, assign) int watchedFD;
42+
@property(atomic, copy, readonly) NSString* path;
43+
@property(atomic, assign, readonly) int watchedFD;
4444
@property(atomic, assign) u_int subscriptionFlags;
4545

4646
@end
@@ -69,7 +69,6 @@ - (void)dealloc
6969
{
7070
close(_watchedFD);
7171
}
72-
_watchedFD = -1;
7372
}
7473

7574
@end

0 commit comments

Comments
 (0)