protocols: minor style improvements to new impls
This commit is contained in:
parent
75c87bde3c
commit
55f1f3fedf
7 changed files with 41 additions and 31 deletions
|
|
@ -26,6 +26,7 @@ void CTearingControlProtocol::onGetController(wl_client* client, wl_resource* re
|
|||
m_vTearingControllers.emplace_back(std::make_unique<CTearingControl>(std::make_shared<CWpTearingControlV1>(client, wl_resource_get_version(resource), id), surf)).get();
|
||||
|
||||
if (!CONTROLLER->good()) {
|
||||
wl_resource_post_no_memory(resource);
|
||||
m_vTearingControllers.pop_back();
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue