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-24389] : iOS Appcelerator Titanium App Crashes after some usage time #8853

Merged
merged 5 commits into from
Mar 7, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 7 additions & 1 deletion iphone/Classes/MediaModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -1394,6 +1394,12 @@ -(void)dispatchCallback:(NSArray*)args
[NSThread sleepForTimeInterval:0.5];
[self _fireEventToListener:type withObject:object listener:listener thisObject:nil];
[pool release];

#ifndef TI_USE_KROLL_THREAD
//TIMOB-24389: Force the heap to be GC'd to avoid Ti.Blob references to be dumped.
KrollContext *krollContext = [self.pageContext krollContext];
[krollContext forceGarbageCollectNow];
#endif
}

-(void)sendPickerError:(int)code
Expand Down Expand Up @@ -2095,7 +2101,7 @@ - (void)imagePickerController:(UIImagePickerController *)picker_ didFinishPickin
if (cropRect != nil) {
[dictionary setObject:cropRect forKey:@"cropRect"];
}
[self sendPickerSuccess:dictionary];
}

Expand Down