We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0053e2b commit 7455379Copy full SHA for 7455379
src/lib/SoftHSM.cpp
@@ -87,6 +87,8 @@
87
#include <unistd.h>
88
#endif
89
90
+int objects_deleted = 0;
91
+
92
// Initialise the one-and-only instance
93
94
#ifdef HAVE_CXX11
@@ -406,6 +408,8 @@ void SoftHSM::reset()
406
408
{
407
409
if (instance.get())
410
instance.reset();
411
412
+ objects_deleted = 0;
413
}
414
415
// Constructor
@@ -445,6 +449,7 @@ SoftHSM::~SoftHSM()
445
449
446
450
isInitialised = false;
447
451
452
+ objects_deleted = 1;
448
453
resetMutexFactoryCallbacks();
454
455
0 commit comments