mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-21 13:40:16 +01:00
winsys/xlib: Fix memory leak.
Memory for xm_dt was allocated twice.
This commit is contained in:
parent
8f7e06ddf6
commit
aa311ae616
1 changed files with 1 additions and 1 deletions
|
|
@ -363,7 +363,7 @@ xm_displaytarget_create(struct sw_winsys *winsys,
|
|||
unsigned alignment,
|
||||
unsigned *stride)
|
||||
{
|
||||
struct xm_displaytarget *xm_dt = CALLOC_STRUCT(xm_displaytarget);
|
||||
struct xm_displaytarget *xm_dt;
|
||||
unsigned nblocksy, size;
|
||||
|
||||
xm_dt = CALLOC_STRUCT(xm_displaytarget);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue