aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-07-24 20:36:33 -0400
committerGitHub <noreply@github.com>2017-07-24 20:36:33 -0400
commitb1ec0dce3a8c5def94e497dd8b16f59a2038c0ed (patch)
treed28920d589d076895b025207d6b93a7519815839
parent3dd6a06df0c5ea83e3edd531f0a2a4b42366d4a9 (diff)
parent8b6dc483557a2b088893ce9b2c2b9c053df8a99e (diff)
Merge pull request #34 from acrisci/bug/fix-cleanup-pageflip-race
bugfix: add null check on output gbm on pageflip
-rw-r--r--backend/drm/drm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index 618274a6..bba3a390 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -631,7 +631,7 @@ static void page_flip_handler(int fd, unsigned seq,
struct wlr_backend_state *state =
wl_container_of(output->renderer, state, renderer);
- if (output->bo[1]) {
+ if (output->gbm && output->bo[1]) {
gbm_surface_release_buffer(output->gbm, output->bo[1]);
output->bo[1] = NULL;
}