Fix two small memory leaks, #4866
This commit is contained in:
@@ -759,6 +759,7 @@ void BayerProcess::autoContrastChanged (double autoContrast)
|
|||||||
me->disableListener();
|
me->disableListener();
|
||||||
me->dualDemosaicContrast->setValue(d->autoContrast);
|
me->dualDemosaicContrast->setValue(d->autoContrast);
|
||||||
me->enableListener();
|
me->enableListener();
|
||||||
|
delete d;
|
||||||
return FALSE;
|
return FALSE;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -261,6 +261,7 @@ void XTransProcess::autoContrastChanged (double autoContrast)
|
|||||||
me->disableListener();
|
me->disableListener();
|
||||||
me->dualDemosaicContrast->setValue(d->autoContrast);
|
me->dualDemosaicContrast->setValue(d->autoContrast);
|
||||||
me->enableListener();
|
me->enableListener();
|
||||||
|
delete d;
|
||||||
return FALSE;
|
return FALSE;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user