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

Unified Diff: source/common/ulist.c

Issue 845603002: Update ICU to 54.1 step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@master
Patch Set: remove unusued directories Created 5 years, 11 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 | « source/common/uinit.cpp ('k') | source/common/uloc.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/common/ulist.c
diff --git a/source/common/ulist.c b/source/common/ulist.c
index aa506584e718a194781867247a6d9ef5b9c7910f..6b5013b0ecdf7bc23f8e5781287bbc0ef793796e 100644
--- a/source/common/ulist.c
+++ b/source/common/ulist.c
@@ -1,6 +1,6 @@
/*
******************************************************************************
-* Copyright (C) 2009-2012, International Business Machines
+* Copyright (C) 2009-2014, International Business Machines
* Corporation and others. All Rights Reserved.
******************************************************************************
*/
@@ -174,18 +174,16 @@ U_CAPI void U_EXPORT2 ulist_resetList(UList *list) {
U_CAPI void U_EXPORT2 ulist_deleteList(UList *list) {
UListNode *listHead = NULL;
- UListNode *listPointer = NULL;
-
+
if (list != NULL) {
listHead = list->head;
- listPointer = listHead;
while (listHead != NULL) {
- listPointer = listHead->next;
-
+ UListNode *listPointer = listHead->next;
+
if (listHead->forceDelete) {
uprv_free(listHead->data);
}
-
+
uprv_free(listHead);
listHead = listPointer;
}
« no previous file with comments | « source/common/uinit.cpp ('k') | source/common/uloc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698