Module: Mesa
Branch: master
Commit: 15e60d9976f82174afeca1d026f566cb8aea5104
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=15e60d9976f82174afeca1d026f566cb8aea5104

Author: Christian König <deathsim...@vodafone.de>
Date:   Mon Feb 27 12:57:24 2012 +0100

vl: fix a douple free in xsp winsys backend

There are a couple of more bugs, but it is only
useful for debugging anyway.

Signed-off-by: Christian König <deathsim...@vodafone.de>

---

 src/gallium/winsys/g3dvl/xlib/xsp_winsys.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/winsys/g3dvl/xlib/xsp_winsys.c 
b/src/gallium/winsys/g3dvl/xlib/xsp_winsys.c
index 2ff5ef1..6cd16bf 100644
--- a/src/gallium/winsys/g3dvl/xlib/xsp_winsys.c
+++ b/src/gallium/winsys/g3dvl/xlib/xsp_winsys.c
@@ -87,7 +87,7 @@ vl_screen_texture_from_drawable(struct vl_screen *vscreen, 
Drawable drawable)
    xsp_screen->xdraw.depth = 24/*util_format_get_blocksizebits(templat.format) 
/
                              util_format_get_blockwidth(templat.format)*/;
 
-   xsp_screen->tex = vscreen->pscreen->resource_create(vscreen->pscreen, 
&templat);
+   pipe_resource_reference(&xsp_screen->tex, 
vscreen->pscreen->resource_create(vscreen->pscreen, &templat));
    return xsp_screen->tex;
 }
 

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to