Differences From Artifact [c50e9dd27b]:
- File
src/OFApplication.m
— part of check-in
[bba061e4b7]
at
2012-09-14 05:24:27
on branch trunk
— Create a pool for -[applicationDidFinishLaunching]
Before, when the application would exit after
-[applicationDidFinishLaunching], this was unnecessary. But now, without
this change, temporary objects might be kept alive while the run loop is
active. (user: js, size: 6966) [annotate] [blame] [check-ins using]
To Artifact [e225bd8cdc]:
- File src/OFApplication.m — part of check-in [0cfbbb367a] at 2012-09-16 13:23:02 on branch trunk — Slightly refactor OFRunLoop. (user: js, size: 6945) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
296 297 298 299 300 301 302 | - (void)run { void *pool; OFRunLoop *runLoop; [OFThread _createMainThread]; | | | | 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 | - (void)run { void *pool; OFRunLoop *runLoop; [OFThread _createMainThread]; runLoop = [OFRunLoop currentRunLoop]; [OFRunLoop _setMainRunLoop]; pool = objc_autoreleasePoolPush(); [delegate applicationDidFinishLaunching]; objc_autoreleasePoolPop(pool); [runLoop run]; } |
︙ | ︙ |