mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
st/xorg: Fix two leeks
We where leaking both surfaces in the composit code and textures from pixmaps.
This commit is contained in:
parent
19798e17fe
commit
bade906ed1
2 changed files with 5 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue