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_surface.c | |
parent | db1021a37c29a60c70ce294077680ca3e98a6460 (diff) |
g3dvl: Use Gallium MALLOC wrappers.
Diffstat (limited to 'src/gallium/state_trackers/g3dvl/vl_surface.c')
-rw-r--r-- | src/gallium/state_trackers/g3dvl/vl_surface.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/g3dvl/vl_surface.c b/src/gallium/state_trackers/g3dvl/vl_surface.c index 076bd40d41..911469f966 100644 --- a/src/gallium/state_trackers/g3dvl/vl_surface.c +++ b/src/gallium/state_trackers/g3dvl/vl_surface.c @@ -1,11 +1,11 @@ #define VL_INTERNAL #include "vl_surface.h" #include <assert.h> -#include <stdlib.h> #include <string.h> #include <pipe/p_screen.h> #include <pipe/p_state.h> #include <pipe/p_inlines.h> +#include <util/u_memory.h> #include <vl_winsys.h> #include "vl_screen.h" #include "vl_context.h" @@ -28,7 +28,7 @@ int vlCreateSurface assert(screen); assert(surface); - sfc = calloc(1, sizeof(struct vlSurface)); + sfc = CALLOC_STRUCT(vlSurface); if (!sfc) return 1; @@ -64,7 +64,7 @@ int vlDestroySurface assert(surface); pipe_texture_release(&surface->texture); - free(surface); + FREE(surface); return 0; } |