Commit f41259db69b8d2549688f3cac79e06e7b40b1c6a
1 parent
886d3912
Use newly allocated queue backing store...
Stupid me forgot to change the pointer and free the old one.
Showing
1 changed file
with
2 additions
and
0 deletions
| @@ -42,6 +42,8 @@ _TR_queueResize(TR_Queue this, size_t split) | @@ -42,6 +42,8 @@ _TR_queueResize(TR_Queue this, size_t split) | ||
| 42 | VPSIZE(this->size - this->start)); | 42 | VPSIZE(this->size - this->start)); |
| 43 | this->start = GROWTH + this->start; | 43 | this->start = GROWTH + this->start; |
| 44 | this->size = new_size; | 44 | this->size = new_size; |
| 45 | + TR_MEM_FREE(this->data); | ||
| 46 | + this->data = new; | ||
| 45 | } | 47 | } |
| 46 | 48 | ||
| 47 | void | 49 | void |
Please
register
or
login
to post a comment