From 64665200fa2b04ea8767a9adab2aa64b8d0b2b0a Mon Sep 17 00:00:00 2001 From: emersion Date: Thu, 28 Jun 2018 14:28:42 +0100 Subject: [PATCH] contributing: move wl_resource_set_user_data() right before free() --- CONTRIBUTING.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index aca308b3..9dd7f504 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -334,9 +334,9 @@ static void subsurface_destroy(struct wlr_subsurface *subsurface) { return; } - wl_resource_set_user_data(subsurface->resource, NULL); - … + + wl_resource_set_user_data(subsurface->resource, NULL); free(subsurface); }