Differences From Artifact [a7b0a81fd8]:
- File src/OFNotificationCenter.m — part of check-in [c40a295629] at 2022-09-12 14:34:38 on branch trunk — Either restrict subclassing or reserve ivars (user: js, size: 8193) [annotate] [blame] [check-ins using] [more...]
To Artifact [bec84a1cd3]:
- File
src/OFNotificationCenter.m
— part of check-in
[5b5c12fa0b]
at
2023-01-13 13:31:07
on branch trunk
— OFNotificationCenter: Don't retain observer
This avoids retain cycles.
A future improvement could be to use a weak reference instead, without
relying on ARC by calling into the runtime functions directly. (user: js, size: 8291) [annotate] [blame] [check-ins using] [more...]
1 | 1 2 3 4 5 6 7 8 9 | - + | /* |
︙ | |||
65 66 67 68 69 70 71 | 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | - + | { self = [super init]; @try { void *pool = objc_autoreleasePoolPush(); _name = [name copy]; |
︙ | |||
104 105 106 107 108 109 110 | 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | - | return self; } #endif - (void)dealloc { [_name release]; |
︙ | |||
243 244 245 246 247 248 249 | 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 | - - - - + + + - + + + + + + + + - + | object: object] autorelease]]; objc_autoreleasePoolPop(pool); } #ifdef OF_HAVE_BLOCKS |
︙ |