Message ID | 20240916202341.238735-2-luiz.dentz@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | f9f98c0b2aa44fe47482e083d428fa3b54ecdeb2 |
Headers | show |
Series | [BlueZ,v2,1/2] shared/uhid: Fix crash after bt_uhid_unregister_all | expand |
Context | Check | Description |
---|---|---|
tedd_an/pre-ci_am | success | Success |
tedd_an/CheckPatch | success | CheckPatch PASS |
tedd_an/GitLint | success | Gitlint PASS |
tedd_an/IncrementalBuild | success | Incremental Build PASS |
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);
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(+)