mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2025-04-21 12:27:27 +03:00
Fixed a good number of memory leaks.
The objects created with "new" were destroyed with "free()", instead of "delete"; as a result, the destructors were never called.
This commit is contained in:
@@ -40,8 +40,8 @@ SettingsDialog::SettingsDialog(
|
||||
}
|
||||
|
||||
SettingsDialog::~SettingsDialog() {
|
||||
for (uint i=0; i<voices.size(); i++)
|
||||
free(voices[i]);
|
||||
for (vector<MenuSetting *>::iterator it = voices.begin(); it != voices.end(); ++it)
|
||||
delete *it;
|
||||
}
|
||||
|
||||
bool SettingsDialog::exec() {
|
||||
|
||||
Reference in New Issue
Block a user