mirror of https://github.com/PCSX2/pcsx2.git
onepad: fix possible dereference of deleted pointer
onepad will dereference conf after it has been deleted if a PADinit, PADshutdown, PADinit sequence takes place.
This commit is contained in:
parent
c659b1aa18
commit
b96609cb51
|
@ -247,8 +247,10 @@ EXPORT_C_(s32) PADinit(u32 flags)
|
|||
EXPORT_C_(void) PADshutdown()
|
||||
{
|
||||
CloseLogging();
|
||||
if (conf) delete conf;
|
||||
if (key_status) delete key_status;
|
||||
delete conf;
|
||||
conf = nullptr;
|
||||
delete key_status;
|
||||
key_status = nullptr;
|
||||
}
|
||||
|
||||
EXPORT_C_(s32) PADopen(void *pDsp)
|
||||
|
|
Loading…
Reference in New Issue