diff options
author | Adam Jackson <ajax@redhat.com> | 2013-08-26 13:52:14 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2013-09-10 14:28:09 -0400 |
commit | 28708a045de7d9043d20fb06b61c44a46eb5526b (patch) | |
tree | c74d2728fd289de3e1e41e2fdbfd7c06d453c36f /dix | |
parent | e657635dbe6b92875b0e88370557c2cbab673a49 (diff) |
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>
Diffstat (limited to 'dix')
-rw-r--r-- | dix/pixmap.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/dix/pixmap.c b/dix/pixmap.c index fe9214739..d5dc3831b 100644 --- a/dix/pixmap.c +++ b/dix/pixmap.c @@ -202,7 +202,6 @@ PixmapStopDirtyTracking(PixmapPtr src, PixmapPtr slave_dst) xorg_list_for_each_entry_safe(ent, safe, &screen->pixmap_dirty_list, ent) { if (ent->src == src && ent->slave_dst == slave_dst) { - DamageUnregister(&src->drawable, ent->damage); DamageDestroy(ent->damage); xorg_list_del(&ent->ent); free(ent); |