summaryrefslogtreecommitdiff
path: root/src/protocols/TearingControl.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-04-21 19:29:45 +0100
committerVaxry <vaxry@vaxry.net>2024-04-21 19:29:45 +0100
commit55f1f3fedfc6dc5da7f304bdfc8296a0a056f781 (patch)
treee82c7dcbf82cc50427430d465cb919cea4a7752f /src/protocols/TearingControl.cpp
parent75c87bde3cfa38105a8c882c790e235503dc46bd (diff)
protocols: minor style improvements to new impls
Diffstat (limited to 'src/protocols/TearingControl.cpp')
-rw-r--r--src/protocols/TearingControl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/protocols/TearingControl.cpp b/src/protocols/TearingControl.cpp
index 21d37e3c..40167766 100644
--- a/src/protocols/TearingControl.cpp
+++ b/src/protocols/TearingControl.cpp
@@ -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;
}