From 66788e6edb8a7e59f5676ca8cf928e23583cb31a Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 7 Apr 2015 23:40:18 -0400 Subject: Implemented the memory logging. --- new/stack.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'new/stack.c') 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; -- cgit v1.2.3