diff options
author | Younes Manton <younes.m@gmail.com> | 2008-12-20 17:09:55 -0500 |
---|---|---|
committer | Younes Manton <younes.m@gmail.com> | 2009-01-10 13:52:07 -0500 |
commit | 1e9c3efcc783cee46268cc227234ed118f0cc08b (patch) | |
tree | ffbd201fa2eae04348797d74e2124f739858fe3d /src/gallium/state_trackers/g3dvl/vl_context.c | |
parent | db1021a37c29a60c70ce294077680ca3e98a6460 (diff) |
g3dvl: Use Gallium MALLOC wrappers.
Diffstat (limited to 'src/gallium/state_trackers/g3dvl/vl_context.c')
-rw-r--r-- | src/gallium/state_trackers/g3dvl/vl_context.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/g3dvl/vl_context.c b/src/gallium/state_trackers/g3dvl/vl_context.c index 5b7bb73b39..fbea1363d8 100644 --- a/src/gallium/state_trackers/g3dvl/vl_context.c +++ b/src/gallium/state_trackers/g3dvl/vl_context.c @@ -1,9 +1,9 @@ #define VL_INTERNAL #include "vl_context.h" #include <assert.h> -#include <stdlib.h> #include <pipe/p_context.h> #include <pipe/p_state.h> +#include <util/u_memory.h> #include "vl_render.h" #include "vl_r16snorm_mc_buf.h" #include "vl_csc.h" @@ -111,7 +111,7 @@ int vlCreateContext assert(context); assert(pipe); - ctx = calloc(1, sizeof(struct vlContext)); + ctx = CALLOC_STRUCT(vlContext); if (!ctx) return 1; @@ -152,7 +152,7 @@ int vlDestroyContext context->pipe->delete_rasterizer_state(context->pipe, context->raster); context->pipe->delete_depth_stencil_alpha_state(context->pipe, context->dsa); - free(context); + FREE(context); return 0; } |