diff mbox series

[BlueZ,v1,2/2] test-uhid: Add call to bt_uhid_unregister_all

Message ID 20240916202232.231417-2-luiz.dentz@gmail.com
State New
Headers show
Series [BlueZ,v1,1/2] shared/uhid: Fix not crash after bt_uhid_unregister_all | expand

Commit Message

Luiz Augusto von Dentz Sept. 16, 2024, 8:22 p.m. UTC
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

This adds a call to bt_uhid_unregister_all so it tests if notification
callback end up calling that.
---
 unit/test-uhid.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/unit/test-uhid.c b/unit/test-uhid.c
index 6871c22eeaa1..c5848bef97f9 100644
--- a/unit/test-uhid.c
+++ b/unit/test-uhid.c
@@ -100,6 +100,7 @@  static void destroy_context(struct context *context)
 	if (context->source > 0)
 		g_source_remove(context->source);
 
+	bt_uhid_unregister_all(context->uhid);
 	bt_uhid_unref(context->uhid);
 
 	test_free(context->data);