aboutsummaryrefslogtreecommitdiff
path: root/launcher/Usable.h
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2023-08-15 10:36:09 +0200
committerGitHub <noreply@github.com>2023-08-15 10:36:09 +0200
commit4b06255cc26933379107745d95f72097737d2a9b (patch)
tree60e00c8389bb2d8e4be492531beb788a253d1b6a /launcher/Usable.h
parent3aba7f8fec45c7c87be486d8f6b5c96f69facf93 (diff)
parent1939e3e6ed3d2d2d4199d90154333cc8892eafeb (diff)
downloadPrismLauncher-4b06255cc26933379107745d95f72097737d2a9b.tar.gz
PrismLauncher-4b06255cc26933379107745d95f72097737d2a9b.tar.bz2
PrismLauncher-4b06255cc26933379107745d95f72097737d2a9b.zip
Merge pull request #1486 from PrismLauncher/staging
Diffstat (limited to 'launcher/Usable.h')
-rw-r--r--launcher/Usable.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/launcher/Usable.h b/launcher/Usable.h
index a75415aa..b0ecd401 100644
--- a/launcher/Usable.h
+++ b/launcher/Usable.h
@@ -16,6 +16,8 @@ class Usable {
friend class UseLock;
public:
+ virtual ~Usable() {}
+
std::size_t useCount() const { return m_useCount; }
bool isInUse() const { return m_useCount > 0; }