mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 22:48:19 +00:00
Release cursor as soon as possible
Cursor resources (basically the shape of it) was retained till it was used however it was copied so there were no reason to not release this resource. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
This commit is contained in:
parent
bfb6601348
commit
1c6e7cf73e
@ -75,7 +75,6 @@ static void cursor_pipe_item_free(RedPipeItem *base)
|
||||
RedCursorPipeItem *pipe_item = SPICE_UPCAST(RedCursorPipeItem, base);
|
||||
|
||||
cursor_cmd = pipe_item->red_cursor;
|
||||
red_qxl_release_resource(pipe_item->qxl, cursor_cmd->release_info_ext);
|
||||
red_put_cursor_cmd(cursor_cmd);
|
||||
free(cursor_cmd);
|
||||
|
||||
|
||||
@ -112,6 +112,7 @@ static gboolean red_process_cursor_cmd(RedWorker *worker, const QXLCommandExt *e
|
||||
free(cursor_cmd);
|
||||
return FALSE;
|
||||
}
|
||||
red_qxl_release_resource(worker->qxl, cursor_cmd->release_info_ext);
|
||||
cursor_channel_process_cmd(worker->cursor_channel, cursor_cmd);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user