Fixed double-free in combined HIDAPI controller code
parent
6ecfc40697
commit
e49321cec5
|
@ -90,7 +90,6 @@ HIDAPI_DriverCombined_OpenJoystick(SDL_HIDAPI_Device *device, SDL_Joystick *joys
|
|||
} else {
|
||||
SDL_strlcpy(new_serial, joystick->serial, new_length);
|
||||
}
|
||||
SDL_free(serial);
|
||||
serial = new_serial;
|
||||
serial_length = new_length;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue