diff options
author | Keith Whitwell <[email protected]> | 2008-05-09 15:02:59 +0100 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2008-05-09 15:04:14 +0100 |
commit | 501be9c7dd0cc5f985c708fa0e5f35d7fd20deb4 (patch) | |
tree | 22ae0cef26b43e0f28e2530027cd048782cd1431 /src/gallium/auxiliary/draw/draw_pt_fetch.c | |
parent | cec016271ccf38d2f32e426f96e7d5d1fdf962f7 (diff) |
draw: fix translate double-free, minor cleanups
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pt_fetch.c')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_pt_fetch.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt_fetch.c b/src/gallium/auxiliary/draw/draw_pt_fetch.c index d62cd9358be..034e0eccb26 100644 --- a/src/gallium/auxiliary/draw/draw_pt_fetch.c +++ b/src/gallium/auxiliary/draw/draw_pt_fetch.c @@ -223,7 +223,8 @@ struct pt_fetch *draw_pt_fetch_create( struct draw_context *draw ) void draw_pt_fetch_destroy( struct pt_fetch *fetch ) { - translate_cache_destroy(fetch->cache); + if (fetch->cache) + translate_cache_destroy(fetch->cache); FREE(fetch); } |