mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Rely on delete being null safe.
This commit is contained in:
@@ -68,11 +68,8 @@ public:
|
|||||||
template<class T>
|
template<class T>
|
||||||
void operator()(T* pt)
|
void operator()(T* pt)
|
||||||
{
|
{
|
||||||
if(ilu_)
|
|
||||||
{
|
|
||||||
delete ilu_;
|
|
||||||
}
|
|
||||||
delete pt;
|
delete pt;
|
||||||
|
delete ilu_;
|
||||||
}
|
}
|
||||||
private:
|
private:
|
||||||
PREC* ilu_;
|
PREC* ilu_;
|
||||||
|
|||||||
Reference in New Issue
Block a user