From 4a119beb59c49d91df912c5e2badedd80c2be1bf Mon Sep 17 00:00:00 2001 From: Kentucky Compass Date: Sat, 30 Dec 2017 21:57:29 -0800 Subject: [PATCH] iOS: fix a reference counting bug that may have caused ViewController to never be deallocated --- ios/ViewController.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/ViewController.mm b/ios/ViewController.mm index 4fd1c60739..2c9bbf436d 100644 --- a/ios/ViewController.mm +++ b/ios/ViewController.mm @@ -66,7 +66,7 @@ extern ScreenManager *screenManager; extern bool iosCanUseJit; extern bool targetIsJailbroken; -ViewController* sharedViewController; +__unsafe_unretained static ViewController* sharedViewController; static GraphicsContext *graphicsContext; @interface ViewController ()