mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-29 02:31:18 +00:00
glamor/glamor_compositerects.c: Set need_free_region immediately after pixman region allocation
Otherwise, the region would leak when the pixmap is not in gpu memory Signed-off-by: stefan11111 <stefan11111github@gmail.com>
This commit is contained in:
parent
3d27175b3c
commit
c504257e02
1 changed files with 2 additions and 2 deletions
|
|
@ -195,6 +195,8 @@ glamor_composite_rectangles(CARD8 op,
|
|||
return;
|
||||
}
|
||||
|
||||
need_free_region = TRUE;
|
||||
|
||||
pixmap = glamor_get_drawable_pixmap(dst->pDrawable);
|
||||
priv = glamor_get_pixmap_private(pixmap);
|
||||
|
||||
|
|
@ -205,8 +207,6 @@ glamor_composite_rectangles(CARD8 op,
|
|||
goto fallback;
|
||||
}
|
||||
|
||||
need_free_region = TRUE;
|
||||
|
||||
DEBUGF("%s: drawable extents (%d, %d),(%d, %d) x %d\n",
|
||||
__func__,
|
||||
RegionExtents(®ion)->x1, RegionExtents(®ion)->y1,
|
||||
|
|
|
|||
Loading…
Reference in a new issue