mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-26 22:55:58 +01:00
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:
commit
f3a5d5dbd7
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue