winsys/xlib: Fix memory leak.

Memory for xm_dt was allocated twice.
This commit is contained in:
Vinson Lee 2010-03-11 00:18:09 -08:00
parent 8f7e06ddf6
commit aa311ae616
1 changed files with 1 additions and 1 deletions

View File

@ -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);