icd: Dont follow next twice in for loop
authorTony Barbour <tony@LunarG.com>
Wed, 8 Apr 2015 15:13:39 +0000 (09:13 -0600)
committerChia-I Wu <olv@lunarg.com>
Thu, 16 Apr 2015 09:33:24 +0000 (17:33 +0800)
icd/common/icd-instance.c

index 2311b6c..d54e572 100644 (file)
@@ -103,7 +103,7 @@ void icd_instance_destroy(struct icd_instance *instance)
 {
     struct icd_instance_logger *logger;
 
-    for (logger = instance->loggers; logger; logger = logger->next) {
+    for (logger = instance->loggers; logger; ) {
         struct icd_instance_logger *next = logger->next;
 
         icd_instance_free(instance, logger);