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

Unified Diff: src/utils.h

Issue 1016006: Reenable ability to Dispose already Disposed Vector. (Closed)
Patch Set: Created 10 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils.h
diff --git a/src/utils.h b/src/utils.h
index 4a9d871ce8646068497a49095f1bc5da003d92c6..89cc5ef4a5587e6bece7093a2734379e4714fea5 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -342,7 +342,6 @@ class Vector {
// vector is empty.
void Dispose() {
DeleteArray(start_);
- if (is_empty()) return;
start_ = NULL;
length_ = 0;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698