diff options
author | Brian <[email protected]> | 2007-11-03 08:50:55 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-11-03 08:50:55 -0600 |
commit | 417cb2c1829f2119f6674987edac09c61d633b45 (patch) | |
tree | 588bc608bfa50ef25dde492a332f23c87f1d732f /src/mesa/x86/rtasm/x86sse.h | |
parent | d9276cbb29807cbca5d7be9a0cedfeb1dcbfbd9c (diff) |
Fix mem leak in SSE code generation path (Michel Dänzer) and don't crash if _mesa_exec_malloc() returns NULL.
(picked from mesa_7_0_branch)
Diffstat (limited to 'src/mesa/x86/rtasm/x86sse.h')
-rw-r--r-- | src/mesa/x86/rtasm/x86sse.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/x86/rtasm/x86sse.h b/src/mesa/x86/rtasm/x86sse.h index 66fb852ac98..42b09937bca 100644 --- a/src/mesa/x86/rtasm/x86sse.h +++ b/src/mesa/x86/rtasm/x86sse.h @@ -80,8 +80,7 @@ enum sse_cc { */ -void x86_init_func( struct x86_function *p ); -void x86_init_func_size( struct x86_function *p, GLuint code_size ); +GLboolean x86_init_func( struct x86_function *p, GLuint code_size ); void x86_release_func( struct x86_function *p ); void (*x86_get_func( struct x86_function *p ))( void ); |