aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-06-28 14:28:42 +0100
committeremersion <contact@emersion.fr>2018-06-28 14:28:42 +0100
commit64665200fa2b04ea8767a9adab2aa64b8d0b2b0a (patch)
tree62d4d6d2ff53d2ccb905c75d7b95b6f7d3239bd3
parentf01896c9d5e7555ff3e2ab914c068b13cf9189a6 (diff)
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);
}