fix: #359 [Bug] [Android] memory leakage leads to app crashes

This commit is contained in:
Sefa Ilkimen
2020-08-17 03:02:05 +02:00
parent ad4079625e
commit 57562a0dcf
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -5,6 +5,7 @@
- Feature #158: support removing headers which were previously set via "setHeader"
- Fixed #345: empty file names are not handled correctly (thanks ikosta)
- Fixed #359: memory leakage leads to app crashes on Android
- :warning: **Breaking Change**: Dropped support for Android < 5.1
- :warning: **Breaking Change**: Removed "disableRedirect", use "setFollowRedirect" instead
@@ -79,6 +79,7 @@ abstract class CordovaHttpBase implements Runnable {
this.prepareRequest(request);
this.sendBody(request);
this.processResponse(request, response);
request.disconnect();
} catch (HttpRequestException e) {
if (e.getCause() instanceof SSLException) {
response.setStatus(-2);