Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIMOB-24206] iOS: Fix image leaks on JSCore, use JSCore by default inside iOS-core as well #9850

Merged
merged 7 commits into from
May 23, 2018
5 changes: 5 additions & 0 deletions iphone/Classes/TiUtils.m
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,12 @@ + (UIImage *)adjustRotation:(UIImage *)image
UIImage *imageCopy = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();

// TIMOB-24206: Handle different JSCore GC-behavior
#if !defined(TI_USE_KROLL_THREAD) && defined(USE_JSCORE_FRAMEWORK)
return [imageCopy autorelease];
#else
return imageCopy;
#endif
}

+ (NSURL *)checkFor2XImage:(NSURL *)url
Expand Down