We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0053e2b commit 3ccf7d9Copy full SHA for 3ccf7d9
src/lib/SoftHSM.cpp
@@ -89,6 +89,8 @@
89
90
// Initialise the one-and-only instance
91
92
+int objects_deleted = 0;
93
+
94
#ifdef HAVE_CXX11
95
96
std::unique_ptr<MutexFactory> MutexFactory::instance(nullptr);
@@ -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