Skip to content

Commit faaf7cc

Browse files
committed
Merge remote-tracking branch 'origin/pr/317'
2 parents 5579ccb + 838af18 commit faaf7cc

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

ViewDeck/IIViewDeckController.m

+6-1
Original file line numberDiff line numberDiff line change
@@ -3182,7 +3182,12 @@ + (void)vdc_swizzle {
31823182
}
31833183

31843184
+ (void)load {
3185-
[self vdc_swizzle];
3185+
static dispatch_once_t onceToken;
3186+
dispatch_once(&onceToken, ^{
3187+
@autoreleasepool {
3188+
[self vdc_swizzle];
3189+
}
3190+
});
31863191
}
31873192

31883193

ViewDeck/IIWrapController.m

+6-2
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,12 @@ + (void)wc_swizzle {
288288
}
289289

290290
+ (void)load {
291-
[super load];
292-
[self wc_swizzle];
291+
static dispatch_once_t onceToken;
292+
dispatch_once(&onceToken, ^{
293+
@autoreleasepool {
294+
[self wc_swizzle];
295+
}
296+
});
293297
}
294298

295299
@end

0 commit comments

Comments
 (0)