mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
fix double-memory free in XMesaDestroyContext
This commit is contained in:
parent
27f4484fb7
commit
0983163fde
1 changed files with 3 additions and 6 deletions
|
|
@ -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 );
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue