aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/shm.c b/shm.c
index b8572cdd..654ecc59 100644
--- a/shm.c
+++ b/shm.c
@@ -250,6 +250,8 @@ shm_get_buffer(struct wl_shm *shm, int width, int height, unsigned long cookie,
cookie, (void *)&it->item);
it->item.busy = true;
it->item.purge = false;
+ free(it->item.scroll_damage);
+ it->item.scroll_damage = NULL;
xassert(it->item.pix_instances == pix_instances);
cached = &it->item;
}