diff options
| author | Sebastien Braun | 2010-10-06 15:09:43 +0200 |
|---|---|---|
| committer | Sebastien Braun | 2010-10-06 15:09:43 +0200 |
| commit | c5c91f40c02d7b8611fb5e479f340fe19254592f (patch) | |
| tree | 47384add2533c27506f673929c18af3726127f57 /src/input/pvsCheckPrivileges.h | |
| parent | Refactor signal handling in pvsprivinputd (diff) | |
| download | pvs-c5c91f40c02d7b8611fb5e479f340fe19254592f.tar.gz pvs-c5c91f40c02d7b8611fb5e479f340fe19254592f.tar.xz pvs-c5c91f40c02d7b8611fb5e479f340fe19254592f.zip | |
Fix deletion order bug
PVSCheckPrivileges::instance() is statically allocated. When it is
deleted, the QCoreApplication is already gone (since it is stack-
allocated), and the destructor of QFileSystemWatcher waits forever.
Diffstat (limited to 'src/input/pvsCheckPrivileges.h')
| -rw-r--r-- | src/input/pvsCheckPrivileges.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/input/pvsCheckPrivileges.h b/src/input/pvsCheckPrivileges.h index fc82e4c..ec6c591 100644 --- a/src/input/pvsCheckPrivileges.h +++ b/src/input/pvsCheckPrivileges.h @@ -114,6 +114,7 @@ public: } static PVSCheckPrivileges* instance(); + static void deleteInstance(); bool require(SessionKind sessionKind, CachedInputContext const& sender); bool require(UserPrivilege userPrivilege, CachedInputContext const& sender); |
