Merge pull request #1097 from emersion/contributing-inert-destroy-order

contributing: move wl_resource_set_user_data() right before free()
This commit is contained in:
Drew DeVault 2018-06-28 06:40:18 -07:00 committed by GitHub
commit f3a5d5dbd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}