fixup: fix memory leak
This commit is contained in:
@@ -68,6 +68,8 @@ void RageInput::LoadDrivers()
|
|||||||
|
|
||||||
#if LINUX
|
#if LINUX
|
||||||
// Recreating this forces it to re-scan for devices.
|
// Recreating this forces it to re-scan for devices.
|
||||||
|
if( LINUXINPUT != nullptr )
|
||||||
|
delete LINUXINPUT;
|
||||||
LINUXINPUT = new LinuxInputManager;
|
LINUXINPUT = new LinuxInputManager;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -91,6 +91,9 @@ LinuxInputManager::LinuxInputManager()
|
|||||||
closedir(sysClassInput);
|
closedir(sysClassInput);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LinuxInputManager::~LinuxInputManager()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
static bool presort_cmpDevices(LinuxInputSort a, LinuxInputSort b)
|
static bool presort_cmpDevices(LinuxInputSort a, LinuxInputSort b)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user