mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-12-21 07:24:20 +01:00
Fix missing HID mouse destructor call
The destructor unregisters the HID mouse, so it was not reported as a leak, but it must still be called.
This commit is contained in:
@@ -598,6 +598,9 @@ end:
|
|||||||
if (hid_keyboard_initialized) {
|
if (hid_keyboard_initialized) {
|
||||||
sc_hid_keyboard_destroy(&s->keyboard_hid);
|
sc_hid_keyboard_destroy(&s->keyboard_hid);
|
||||||
}
|
}
|
||||||
|
if (hid_mouse_initialized) {
|
||||||
|
sc_hid_mouse_destroy(&s->mouse_hid);
|
||||||
|
}
|
||||||
sc_aoa_stop(&s->aoa);
|
sc_aoa_stop(&s->aoa);
|
||||||
}
|
}
|
||||||
if (acksync) {
|
if (acksync) {
|
||||||
|
|||||||
Reference in New Issue
Block a user