[Mesa-dev] [PATCH 1/4] gallium/hud: replace malloc w/ MALLOC

Marek Olšák maraeo at gmail.com
Thu Apr 4 03:11:30 PDT 2013


Reviewed-by: Marek Olšák <maraeo at gmail.com>

Marek


On Thu, Apr 4, 2013 at 1:39 AM, Brian Paul <brianp at vmware.com> wrote:

> To match the FREE() called used later.  Fixes things on Windows.
> ---
>  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];
> --
> 1.7.3.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130404/074ebcb3/attachment-0001.html>


More information about the mesa-dev mailing list