aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-06-28 06:40:18 -0700
committerGitHub <noreply@github.com>2018-06-28 06:40:18 -0700
commitf3a5d5dbd70d0d6f12577d18391155d99d88cb2b (patch)
tree9bf60ebdd451e6469fea2851e9973cca1b920fba
parentec7d4a09715e5c24ce4a7fd15289df0ad2298a93 (diff)
parent64665200fa2b04ea8767a9adab2aa64b8d0b2b0a (diff)
Merge pull request #1097 from emersion/contributing-inert-destroy-order
contributing: move wl_resource_set_user_data() right before free()
-rw-r--r--CONTRIBUTING.md4
1 files 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);
}