xlib: Implement lp_winsys::destroy.
authorJosé Fonseca <jfonseca@vmware.com>
Sat, 29 Aug 2009 19:33:28 +0000 (20:33 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Sun, 30 Aug 2009 11:37:03 +0000 (12:37 +0100)
src/gallium/winsys/xlib/xlib_llvmpipe.c

index 55b59a1c14cf7db7892a998f6a10b59f05c9e007..bc876591c0db24e23c278a5c70035f07241b9692 100644 (file)
@@ -364,6 +364,13 @@ no_xm_dt:
 }
 
 
+static void
+xm_destroy( struct llvmpipe_winsys *ws )
+{
+   FREE(ws);
+}
+
+
 static struct llvmpipe_winsys *
 xlib_create_llvmpipe_winsys( void )
 {
@@ -373,6 +380,8 @@ xlib_create_llvmpipe_winsys( void )
    if (!ws)
       return NULL;
 
+   ws->base.destroy = xm_destroy;
+
    ws->base.is_displaytarget_format_supported = xm_is_displaytarget_format_supported;
 
    ws->base.displaytarget_create = xm_displaytarget_create;