diff options
author | Brian Paul <[email protected]> | 2003-04-02 19:34:36 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2003-04-02 19:34:36 +0000 |
commit | 0983163fde91f1026146903155fd414725a79879 (patch) | |
tree | aed051ae466d748d7f27469b955fe581d947ac78 /src/mesa | |
parent | 27f4484fb73ac7bf4f790ca2d3efd50b6bea25c3 (diff) |
fix double-memory free in XMesaDestroyContext
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/x11/xm_api.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mesa/drivers/x11/xm_api.c b/src/mesa/drivers/x11/xm_api.c index ec32efd5f0a..6c9ca9c8500 100644 --- a/src/mesa/drivers/x11/xm_api.c +++ b/src/mesa/drivers/x11/xm_api.c @@ -1,8 +1,6 @@ -/* $Id: xm_api.c,v 1.55 2003/04/01 17:28:11 brianp Exp $ */ - /* * Mesa 3-D graphics library - * Version: 5.0.1 + * Version: 5.1 * * Copyright (C) 1999-2003 Brian Paul All Rights Reserved. * @@ -1675,9 +1673,8 @@ void XMesaDestroyContext( XMesaContext c ) _swrast_DestroyContext( mesaCtx ); _tnl_DestroyContext( mesaCtx ); _ac_DestroyContext( mesaCtx ); - _mesa_destroy_context( mesaCtx ); - - FREE( c ); + _mesa_free_context_data( mesaCtx ); + _mesa_free( c ); } |