mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[client] wayland: fix possible memory leak
This commit is contained in:
@@ -162,6 +162,7 @@ void waylandOutputBind(uint32_t name, uint32_t version)
|
|||||||
if (version < 2)
|
if (version < 2)
|
||||||
{
|
{
|
||||||
DEBUG_WARN("wl_output version too old: expected >= 2, got %d", version);
|
DEBUG_WARN("wl_output version too old: expected >= 2, got %d", version);
|
||||||
|
free(node);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -217,4 +218,3 @@ wl_fixed_t waylandOutputGetScale(struct wl_output * output)
|
|||||||
return node->scale;
|
return node->scale;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user