aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--types/wlr_surface.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/types/wlr_surface.c b/types/wlr_surface.c
index 43f8f65a..cb0aa27f 100644
--- a/types/wlr_surface.c
+++ b/types/wlr_surface.c
@@ -293,6 +293,7 @@ release:
pixman_region32_init(&surface->current.buffer_damage);
wl_resource_queue_event(surface->current.buffer, WL_BUFFER_RELEASE);
+ surface->current.buffer = NULL;
}
static void surface_set_buffer_transform(struct wl_client *client,