st/xorg: fix refcounting bugs introduced in earlier commit

This commit is contained in:
Keith Whitwell 2009-11-26 14:23:24 +00:00
parent dfb871d403
commit ecfe1352cc
2 changed files with 5 additions and 0 deletions

View 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;
}

View 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;
}