Module: Mesa
Branch: master
Commit: a408ea96920984ad2c5bf81f799cbb583f264105
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a408ea96920984ad2c5bf81f799cbb583f264105

Author: Brian Paul <bri...@vmware.com>
Date:   Wed Apr  3 13:33:38 2013 -0600

gallium/hud: replace malloc w/ MALLOC

To match the FREE() called used later.  Fixes things on Windows.

Reviewed-by: Marek Olšák <mar...@gmail.com>

---

 src/gallium/auxiliary/hud/hud_context.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/auxiliary/hud/hud_context.c 
b/src/gallium/auxiliary/hud/hud_context.c
index 5511f8e..b417f5d 100644
--- a/src/gallium/auxiliary/hud/hud_context.c
+++ b/src/gallium/auxiliary/hud/hud_context.c
@@ -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];

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to