aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-08-18 13:22:10 -0400
committerGitHub <noreply@github.com>2017-08-18 13:22:10 -0400
commitd748fd1a8e455685babdd79857c67351f03c6ff3 (patch)
treea34370e4651af8441847d2c2cf6ad7dd8300eb84
parent995ebe3bb02388042073f2e8e0e3fa316ded375d (diff)
parentc6631e21403a305fd0b47c8de74ac6586cf794eb (diff)
Merge pull request #106 from acrisci/bug/fix-wild-buffer
Fix wild pointer to buffer
-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,