diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-04-15 19:45:07 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-04-15 19:45:07 +0000 |
commit | da985f982d63b06db8784199105f73bc0a4d6fc6 (patch) | |
tree | 0db5197388ed0b69847259488f6abf52277eb7f1 /plugins/MirandaG15/src/LCDFramework/CLCDConnectionLogitech.cpp | |
parent | 9e3ba523300180641ef7a22f791bd3ae89ec4785 (diff) |
MirandaG15:
- minor bugfixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@12843 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirandaG15/src/LCDFramework/CLCDConnectionLogitech.cpp')
-rw-r--r-- | plugins/MirandaG15/src/LCDFramework/CLCDConnectionLogitech.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/MirandaG15/src/LCDFramework/CLCDConnectionLogitech.cpp b/plugins/MirandaG15/src/LCDFramework/CLCDConnectionLogitech.cpp index 466b9cfe59..870d1d9009 100644 --- a/plugins/MirandaG15/src/LCDFramework/CLCDConnectionLogitech.cpp +++ b/plugins/MirandaG15/src/LCDFramework/CLCDConnectionLogitech.cpp @@ -922,7 +922,7 @@ SG15LightStatus CLCDConnectionLogitech::GetLightStatus() // MRKey
status.bMRKey = !(data[3] & G15_MR_LIGHT);
- free(data);
+ delete[] data;
return status;
}
@@ -950,7 +950,7 @@ void CLCDConnectionLogitech::SetMKeyLight(bool bM1,bool bM2,bool bM3,bool bMR) data[3] = 0x00;
HidD_SetFeature(m_hHIDDeviceHandle, data, m_HIDCapabilities.FeatureReportByteLength);
- free(data);
+ delete[] data;
}
void CLCDConnectionLogitech::SetLCDBacklight(ELCDBrightness eBrightness)
@@ -968,7 +968,7 @@ void CLCDConnectionLogitech::SetLCDBacklight(ELCDBrightness eBrightness) HidD_SetFeature(m_hHIDDeviceHandle, data, m_HIDCapabilities.FeatureReportByteLength);
- free(data);
+ delete[] data;
}
void CLCDConnectionLogitech::SetKBDBacklight(EKBDBrightness eBrightness)
|