mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
making destructor of WellInterface virtual
to avoid memory leaking.
This commit is contained in:
parent
a60a969257
commit
8abe48a693
@ -87,6 +87,9 @@ namespace Opm
|
|||||||
/// Constructor
|
/// Constructor
|
||||||
WellInterface(const Well* well, const int time_step, const Wells* wells);
|
WellInterface(const Well* well, const int time_step, const Wells* wells);
|
||||||
|
|
||||||
|
/// Virutal destructor
|
||||||
|
virtual ~WellInterface() {}
|
||||||
|
|
||||||
/// Well name.
|
/// Well name.
|
||||||
const std::string& name() const;
|
const std::string& name() const;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user