diff options
| author | Pietro Gagliardi <[email protected]> | 2015-04-07 23:40:18 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-04-07 23:40:18 -0400 |
| commit | 66788e6edb8a7e59f5676ca8cf928e23583cb31a (patch) | |
| tree | 6bdd493db0e67363779f745d48a872d1967d76bc /new/stack.c | |
| parent | 49ee58ca364d055594657f11cef04f8c8440c366 (diff) | |
Implemented the memory logging.
Diffstat (limited to 'new/stack.c')
| -rw-r--r-- | new/stack.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/new/stack.c b/new/stack.c index 55dc384..433c6b5 100644 --- a/new/stack.c +++ b/new/stack.c @@ -188,10 +188,10 @@ void uiStackAdd(uiControl *st, uiControl *c, int stretchy) if (s->len >= s->cap) { s->cap += stackCapGrow; - s->controls = (uiControl **) uiRealloc(s->controls, s->cap * sizeof (uiControl *)); - s->stretchy = (int *) uiRealloc(s->stretchy, s->cap * sizeof (int)); - s->width = (intmax_t *) uiRealloc(s->width, s->cap * sizeof (intmax_t)); - s->height = (intmax_t *) uiRealloc(s->height, s->cap * sizeof (intmax_t)); + s->controls = (uiControl **) uiRealloc(s->controls, s->cap * sizeof (uiControl *), "uiControl *[]"); + s->stretchy = (int *) uiRealloc(s->stretchy, s->cap * sizeof (int), "int[]"); + s->width = (intmax_t *) uiRealloc(s->width, s->cap * sizeof (intmax_t), "intmax_t[]"); + s->height = (intmax_t *) uiRealloc(s->height, s->cap * sizeof (intmax_t), "intmax_t[]"); } s->controls[s->len] = c; s->stretchy[s->len] = stretchy; |
