Skip to content

Commit

Permalink
fix(ios): autorelease Ti.Blob#arrayBuffer() Promise
Browse files Browse the repository at this point in the history
  • Loading branch information
sgtcoolguy committed Jan 26, 2021
1 parent 10c4acd commit 9afe176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iphone/TitaniumKit/TitaniumKit/Sources/API/TiBlob.m
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ - (JSValue *)toArrayBuffer
- (JSValue *)arrayBuffer
{
JSContext *context = [self currentContext];
KrollPromise *promise = [[KrollPromise alloc] initInContext:context];
KrollPromise *promise = [[[KrollPromise alloc] initInContext:context] autorelease];
TiThreadPerformOnMainThread(
^{
NSData *theData = [self data];
Expand Down

0 comments on commit 9afe176

Please sign in to comment.