tearing_control_v1: Free the wlr_tearing_control_v1 on error

Signed-off-by: YaoBing Xiao <xiaoyaobing@uniontech.com>
master
YaoBing Xiao 2 months ago
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…
Cancel
Save