damage: Implicitly unregister on destroy
There's no reason not to, and it simplifies quite a few callers. Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
@@ -389,10 +389,7 @@ ephyrUnsetInternalDamage(ScreenPtr pScreen)
|
||||
KdScreenPriv(pScreen);
|
||||
KdScreenInfo *screen = pScreenPriv->screen;
|
||||
EphyrScrPriv *scrpriv = screen->driver;
|
||||
PixmapPtr pPixmap = NULL;
|
||||
|
||||
pPixmap = (*pScreen->GetScreenPixmap) (pScreen);
|
||||
DamageUnregister(&pPixmap->drawable, scrpriv->pDamage);
|
||||
DamageDestroy(scrpriv->pDamage);
|
||||
|
||||
RemoveBlockAndWakeupHandlers(ephyrInternalDamageBlockHandler,
|
||||
|
||||
Reference in New Issue
Block a user