Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Commit 3fec76a

Browse files
committed
Fix build problem on Xcode < 7.3 #30 #31
1 parent 386ac02 commit 3fec76a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/ios/RNFetchBlobFS.m

+1
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ - (void)stream:(NSStream *)stream handleEvent:(NSStreamEvent)eventCode {
293293
else
294294
asciiStr = [asciiStr stringByAppendingFormat:@"%d", val];
295295
}
296+
free(bytePtr);
296297
}
297298
asciiStr = [asciiStr stringByAppendingString:@"]"];
298299
[self.bridge.eventDispatcher

src/ios/RNFetchBlobNetwork.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ typedef void(^DataTaskCompletionHander) (NSData * _Nullable resp, NSURLResponse
2121
@property (nonatomic) int expectedBytes;
2222
@property (nonatomic) int receivedBytes;
2323
@property (nullable, nonatomic) NSMutableData * respData;
24-
@property (nullable, nonatomic) RCTResponseSenderBlock callback;
24+
@property (strong, nonatomic) RCTResponseSenderBlock callback;
2525
@property (nullable, nonatomic) RCTBridge * bridge;
2626
@property (nullable, nonatomic) NSDictionary * options;
2727
@property (nullable, nonatomic) RNFetchBlobFS * fileStream;
28-
@property (nullable, nonatomic) CompletionHander fileTaskCompletionHandler;
29-
@property (nullable, nonatomic) DataTaskCompletionHander dataTaskCompletionHandler;
28+
@property (strong, nonatomic) CompletionHander fileTaskCompletionHandler;
29+
@property (strong, nonatomic) DataTaskCompletionHander dataTaskCompletionHandler;
3030
@property (nullable, nonatomic) NSError * error;
3131

3232

0 commit comments

Comments
 (0)