st/xorg: Fix two leeks

We where leaking both surfaces in the composit code
	and textures from pixmaps.
This commit is contained in:
Jakob Bornecrantz 2009-09-22 10:59:26 -07:00
parent 19798e17fe
commit bade906ed1
2 changed files with 5 additions and 0 deletions

View file

@ -359,6 +359,9 @@ bind_framebuffer_state(struct exa_context *exa, struct exa_pixmap_priv *pDst)
state.zsbuf = 0;
cso_set_framebuffer(exa->cso, &state);
/* we do fire and forget for the framebuffer, this is the forget part */
pipe_surface_reference(&surface, NULL);
}
enum AxisOrientation {

View file

@ -671,6 +671,8 @@ ExaModifyPixmapHeader(PixmapPtr pPixmap, int width, int height,
#endif
pipe_texture_reference(&priv->tex, texture);
/* the texture we create has one reference */
pipe_texture_reference(&texture, NULL);
}
return TRUE;