st/xorg: fix refcounting bugs introduced in earlier commit
authorKeith Whitwell <keithw@vmware.com>
Thu, 26 Nov 2009 14:23:24 +0000 (14:23 +0000)
committerKeith Whitwell <keithw@vmware.com>
Thu, 26 Nov 2009 14:23:24 +0000 (14:23 +0000)
src/gallium/state_trackers/xorg/xorg_composite.c
src/gallium/state_trackers/xorg/xorg_xv.c

index a35249d60d21a8992793fb504751520488721cf3..bdc1d9f5da34508d48c433ea97c8fcf165358202 100644 (file)
@@ -491,6 +491,8 @@ boolean xorg_composite_bind_state(struct exa_context *exa,
                               exa->num_bound_samplers);
    }
 
+
+   pipe_surface_reference(&dst_surf, NULL);
    return TRUE;
 }
 
@@ -554,6 +556,7 @@ boolean xorg_solid_bind_state(struct exa_context *exa,
 
    renderer_begin_solid(exa->renderer);
 
+   pipe_surface_reference(&dst_surf, NULL);
    return TRUE;
 }
 
index 7c05c7af399f3629a2f5b5b7147a904f147f6485..0b2556b98ed7d465470897a5cce7125369ad2dc6 100644 (file)
@@ -488,6 +488,8 @@ display_video(ScrnInfoPtr pScrn, struct xorg_xv_port_priv *pPriv, int id,
    }
    DamageRegionProcessPending(&pPixmap->drawable);
 
+   pipe_surface_reference(&dst_surf, NULL);
+
    return TRUE;
 }