Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Unified Diff: lib/src/hash_sink.dart

Issue 1906093002: Close underlying Hash sinks. (Closed) Base URL: git@github.com:dart-lang/crypto@master
Patch Set: cr Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/hash_sink.dart
diff --git a/lib/src/hash_sink.dart b/lib/src/hash_sink.dart
index f4adcb3da61e7ffee13c474d69b22c6eaa7bde45..c593bd1a20975d95e32652e0a6df2f011f935094 100644
--- a/lib/src/hash_sink.dart
+++ b/lib/src/hash_sink.dart
@@ -70,6 +70,7 @@ abstract class HashSink implements Sink<List<int>> {
_iterate();
assert(_pendingData.isEmpty);
_sink.add(new Digest(_byteDigest()));
+ _sink.close();
}
Uint8List _byteDigest() {
« no previous file with comments | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698