Commit aa311ae6 authored by Vinson Lee's avatar Vinson Lee

winsys/xlib: Fix memory leak.

Memory for xm_dt was allocated twice.
parent 8f7e06dd
......@@ -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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment