contributing: move wl_resource_set_user_data() right before free()

This commit is contained in:
emersion 2018-06-28 14:28:42 +01:00
parent f01896c9d5
commit 64665200fa
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48

View file

@ -334,9 +334,9 @@ static void subsurface_destroy(struct wlr_subsurface *subsurface) {
return; return;
} }
wl_resource_set_user_data(subsurface->resource, NULL);
wl_resource_set_user_data(subsurface->resource, NULL);
free(subsurface); free(subsurface);
} }