fixup: fix memory leak

This commit is contained in:
Thomas Calvert
2025-03-02 11:41:43 -08:00
committed by teejusb
parent 788db3d826
commit 1409bbcadf
2 changed files with 5 additions and 0 deletions
+2
View File
@@ -68,6 +68,8 @@ void RageInput::LoadDrivers()
#if LINUX
// Recreating this forces it to re-scan for devices.
if( LINUXINPUT != nullptr )
delete LINUXINPUT;
LINUXINPUT = new LinuxInputManager;
#endif
@@ -91,6 +91,9 @@ LinuxInputManager::LinuxInputManager()
closedir(sysClassInput);
}
LinuxInputManager::~LinuxInputManager()
{
}
static bool presort_cmpDevices(LinuxInputSort a, LinuxInputSort b)
{