mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-05-09 02:28:20 +02:00
linux_drm_syncobj_v1: fix memory leak
Signed-off-by: xurui <xurui@kylinos.cn>
This commit is contained in:
parent
37f30dc8d0
commit
19df074c16
1 changed files with 1 additions and 0 deletions
|
|
@ -387,6 +387,7 @@ static void manager_handle_import_timeline(struct wl_client *client,
|
|||
struct wl_resource *timeline_resource = wl_resource_create(client,
|
||||
&wp_linux_drm_syncobj_timeline_v1_interface, version, id);
|
||||
if (timeline_resource == NULL) {
|
||||
wlr_drm_syncobj_timeline_unref(timeline);
|
||||
wl_resource_post_no_memory(resource);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue