Browse Source

Fixed another IO not closed resource leak

master
Anthony Restaino 9 years ago
parent
commit
2f8feead71
  1. 1
      app/src/main/java/acr/browser/lightning/object/SearchAdapter.java

1
app/src/main/java/acr/browser/lightning/object/SearchAdapter.java

@ -400,6 +400,7 @@ public class SearchAdapter extends BaseAdapter implements Filterable { @@ -400,6 +400,7 @@ public class SearchAdapter extends BaseAdapter implements Filterable {
if (connection.getResponseCode() >= HttpURLConnection.HTTP_MULT_CHOICE ||
connection.getResponseCode() < HttpURLConnection.HTTP_OK) {
Log.e(TAG, "Search API Responded with code: " + connection.getResponseCode());
connection.disconnect();
return cacheFile;
}
in = connection.getInputStream();

Loading…
Cancel
Save