diff --git a/types/wlr_tearing_control_v1.c b/types/wlr_tearing_control_v1.c index cd7cd5a5..e5a88fec 100644 --- a/types/wlr_tearing_control_v1.c +++ b/types/wlr_tearing_control_v1.c @@ -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; }