Commit 859ce4011442598b613e67dc61f9df678f244b89

Authored by Georg Hopp
1 parent b11c17ed

Use iterator if possible

Showing 1 changed file with 2 additions and 4 deletions
... ... @@ -47,10 +47,8 @@ setDtor(void * _this)
47 47 size_t i;
48 48
49 49 if (this->free_msgs) {
50   - for (i = 0; i < this->used; i++) {
51   - if (this->data[i]) {
52   - TR_delete(this->data[i]);
53   - }
  50 + TR_iterableForeach(this) {
  51 + TR_delete(this->data[i]);
54 52 }
55 53 }
56 54
... ...
Please register or login to post a comment