mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-24 08:02:21 +00:00
tearing_control_v1: Free the wlr_tearing_control_v1 on error
Signed-off-by: YaoBing Xiao <xiaoyaobing@uniontech.com>
This commit is contained in:
parent
1a7981f7c9
commit
9f7ab85718
@ -122,6 +122,7 @@ static void tearing_control_manager_handle_get_tearing_control(
|
||||
wl_resource_get_version(resource), id);
|
||||
|
||||
if (created_resource == NULL) {
|
||||
free(hint);
|
||||
wl_resource_post_no_memory(resource);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user