input/control: INPUT_CHANGE_BOOKMARK: fix leak and return
The previous implementation would potentially try to duplicate a
seekpoint that was never used due to invalid arguments, as well as
leaking said duplicate.
These changes make sure that we do not leak the resource, while also
preventing the unnecessary duplication + returning an error if
we are unable to complete the operation.
CID: 1409711
Signed-off-by:
Thomas Guillem <thomas@gllm.fr>
Please register or sign in to comment