mirror of https://github.com/PCSX2/pcsx2.git
Merge pull request #625 from turtleli/onepad-fix
linux: onepad: Prevent dereference of deleted pointer
This commit is contained in:
commit
e3adf823b3
|
@ -246,9 +246,11 @@ EXPORT_C_(s32) PADinit(u32 flags)
|
||||||
|
|
||||||
EXPORT_C_(void) PADshutdown()
|
EXPORT_C_(void) PADshutdown()
|
||||||
{
|
{
|
||||||
CloseLogging();
|
CloseLogging();
|
||||||
if (conf) delete conf;
|
delete conf;
|
||||||
if (key_status) delete key_status;
|
conf = nullptr;
|
||||||
|
delete key_status;
|
||||||
|
key_status = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
EXPORT_C_(s32) PADopen(void *pDsp)
|
EXPORT_C_(s32) PADopen(void *pDsp)
|
||||||
|
|
Loading…
Reference in New Issue