mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
contributing: move wl_resource_set_user_data() right before free()
This commit is contained in:
parent
f01896c9d5
commit
64665200fa
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue