tools/mpris-proxy: unregister object path if player registration fails
authorHaochen Tong <i@hexchain.org>
Sun, 25 Sep 2022 16:31:39 +0000 (00:31 +0800)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:55 +0000 (14:55 +0530)
commit336ba30576407a6c452054b963b1a738079cff44
tree484135aeb2845f5b374501ccbc05129543aa1cd9
parente12a00f238a121f804b68f4619962b3f60d1978b
tools/mpris-proxy: unregister object path if player registration fails

The `owner' string, passed as user data, is freed if the player fails
registration, but the object path still exists. Upon program exiting,
the lingering path will be enumerated and the attached user data will be
freed again.

Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
tools/mpris-proxy.c