projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f7e06d
)
winsys/xlib: Fix memory leak.
author
Vinson Lee
<vlee@vmware.com>
Thu, 11 Mar 2010 08:18:09 +0000
(
00:18
-0800)
committer
Vinson Lee
<vlee@vmware.com>
Thu, 11 Mar 2010 08:18:09 +0000
(
00:18
-0800)
Memory for xm_dt was allocated twice.
src/gallium/winsys/xlib/xlib_sw_winsys.c
patch
|
blob
|
history
diff --git
a/src/gallium/winsys/xlib/xlib_sw_winsys.c
b/src/gallium/winsys/xlib/xlib_sw_winsys.c
index 29c642706a4ce89fd47869bc88aeccc9ec3a05ea..cecfa4a53d4ade4be31f1f6a40814a4d5a250711 100644
(file)
--- a/
src/gallium/winsys/xlib/xlib_sw_winsys.c
+++ b/
src/gallium/winsys/xlib/xlib_sw_winsys.c
@@
-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);