mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-04-04 14:14:17 -04:00
Fix mismatched new[] / delete
- The device description buffer was allocated using new[] in RGBController. Make sure to free it using delete[].
This commit is contained in:
@@ -77,7 +77,7 @@ bool ProfileManager::SaveProfile(std::string profile_name, bool sizes)
|
||||
|
||||
controller_file.write((const char *)controller_data, controller_size);
|
||||
|
||||
delete controller_data;
|
||||
delete[] controller_data;
|
||||
}
|
||||
|
||||
/*---------------------------------------------------------*\
|
||||
|
||||
Reference in New Issue
Block a user