gallium/hud: replace malloc w/ MALLOC
authorBrian Paul <brianp@vmware.com>
Wed, 3 Apr 2013 19:33:38 +0000 (13:33 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 4 Apr 2013 14:50:15 +0000 (08:50 -0600)
To match the FREE() called used later.  Fixes things on Windows.

Reviewed-by: Marek Olšák <maraeo@gmail.com>
src/gallium/auxiliary/hud/hud_context.c

index 5511f8e1011b9b664d165c79f965ad02f0a59933..b417f5d3726775481dce0d9edf254354ffe78136 100644 (file)
@@ -621,7 +621,7 @@ hud_pane_add_graph(struct hud_pane *pane, struct hud_graph *gr)
    }
 
    assert(pane->num_graphs < Elements(colors));
-   gr->vertices = malloc(pane->max_num_vertices * sizeof(float) * 2);
+   gr->vertices = MALLOC(pane->max_num_vertices * sizeof(float) * 2);
    gr->color[0] = colors[pane->num_graphs][0];
    gr->color[1] = colors[pane->num_graphs][1];
    gr->color[2] = colors[pane->num_graphs][2];