Showing
1 changed file
with
2 additions
and
4 deletions
@@ -47,10 +47,8 @@ setDtor(void * _this) | @@ -47,10 +47,8 @@ setDtor(void * _this) | ||
47 | size_t i; | 47 | size_t i; |
48 | 48 | ||
49 | if (this->free_msgs) { | 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