From daf3f5899a0b1f5333b59dd8ae6a46c4e9a15169 Mon Sep 17 00:00:00 2001 From: Kim Date: Mon, 20 Sep 2021 14:36:11 +0200 Subject: [PATCH] Invalidate upload session Prevent memory leaks --- Uploader.m | 1 + 1 file changed, 1 insertion(+) diff --git a/Uploader.m b/Uploader.m index afc0d644..9463c81d 100644 --- a/Uploader.m +++ b/Uploader.m @@ -109,6 +109,7 @@ - (void)uploadFiles:(RNFSUploadParams*)params return self->_params.completeCallback(str, response); }]; [_task resume]; + [session finishTasksAndInvalidate]; if (_params.beginCallback) { _params.beginCallback(); }