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