mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-10-19 15:22:10 -04:00
Fixes a few memory leaks
This commit is contained in:
1 parent
8bb7ab8099
commit
70b2a9c842
2 files changed
+6
-2
No files matched your search
@@ -285,7 +285,7 @@ void ENESMBusController::SetAllColorsDirect(RGBColor* colors)
|
||||
bytes_sent += bytes_to_send;
|
||||
}
|
||||
|
||||
delete color_buf;
|
||||
delete[] color_buf;
|
||||
}
|
||||
|
||||
void ENESMBusController::SetAllColorsEffect(RGBColor* colors)
|
||||
@@ -316,7 +316,7 @@ void ENESMBusController::SetAllColorsEffect(RGBColor* colors)
|
||||
|
||||
ENERegisterWrite(ENE_REG_APPLY, ENE_APPLY_VAL);
|
||||
|
||||
delete color_buf;
|
||||
delete[] color_buf;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user