Fixed a memory-leak
This commit is contained in:
parent
39a4723667
commit
aae246f4ff
1 changed files with 5 additions and 1 deletions
|
@ -43,8 +43,12 @@ Settings::Settings(void)
|
||||||
*/
|
*/
|
||||||
Settings::~Settings(void)
|
Settings::~Settings(void)
|
||||||
{
|
{
|
||||||
if (d->cfg > 0)
|
if (d->cfg > 0) {
|
||||||
cfg_free(d->cfg);
|
cfg_free(d->cfg);
|
||||||
|
}
|
||||||
|
if (d->var_cfg > 0) {
|
||||||
|
cfg_free(d->var_cfg);
|
||||||
|
}
|
||||||
delete d;
|
delete d;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue