st/xorg: fix refcounting bugs introduced in earlier commit
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user