mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-10-23 08:58:58 -04:00
Fix memory leak (RGBController::GetDeviceDescription)
This commit is contained in:
1 parent
e848be5159
commit
8ef9f622f1
2 files changed
+4
No files matched your search
@@ -75,6 +75,8 @@ bool ProfileManager::SaveProfile(std::string profile_name, bool sizes)
|
||||
memcpy(&controller_size, controller_data, sizeof(controller_size));
|
||||
|
||||
controller_file.write((const char *)controller_data, controller_size);
|
||||
|
||||
delete controller_data;
|
||||
}
|
||||
|
||||
/*---------------------------------------------------------*\
|
||||
|
||||
Reference in new issue
Block a user