diff options
author | Povilas Kanapickas <povilas@radix.lt> | 2020-11-27 18:48:55 +0200 |
---|---|---|
committer | Povilas Kanapickas <povilas@radix.lt> | 2020-11-27 18:48:55 +0200 |
commit | db9076e9469c318b900d557cb76efffad953d219 (patch) | |
tree | 8ad286ad823e228b98a2b1fe09368a1d88fc6135 | |
parent | 5ee43f5e4e33260f77e24e1239c260689140e982 (diff) |
Ensure that classes with overridden functions have virtual destructor
-rw-r--r-- | include/xorg/gtest/xorg-gtest-process.h | 2 | ||||
-rw-r--r-- | include/xorg/gtest/xorg-gtest-xserver.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/xorg/gtest/xorg-gtest-process.h b/include/xorg/gtest/xorg-gtest-process.h index 4b2452f..f2a1631 100644 --- a/include/xorg/gtest/xorg-gtest-process.h +++ b/include/xorg/gtest/xorg-gtest-process.h @@ -112,7 +112,7 @@ class Process { */ Process(); - ~Process(); + virtual ~Process(); /** * Fork manually. Usually, fork() is called as part of Start() but for diff --git a/include/xorg/gtest/xorg-gtest-xserver.h b/include/xorg/gtest/xorg-gtest-xserver.h index 03aeca4..3a8e1b9 100644 --- a/include/xorg/gtest/xorg-gtest-xserver.h +++ b/include/xorg/gtest/xorg-gtest-xserver.h @@ -80,7 +80,7 @@ public: class XServer : public xorg::testing::Process { public: XServer(); - ~XServer(); + virtual ~XServer(); /** * Start a new server. If no binary is given, the server started is the |