From da717d6f26dab0cc4fad4dabf53bcff4eb4555e5 Mon Sep 17 00:00:00 2001 From: lloyd Date: Tue, 23 Mar 2010 20:03:12 +0000 Subject: Don't delete the global RNG in AutoSeeded_RNG's destructor --- src/rng/auto_rng/auto_rng.h | 1 - 1 file changed, 1 deletion(-) diff --git a/src/rng/auto_rng/auto_rng.h b/src/rng/auto_rng/auto_rng.h index 9a93fee8f..90f342a50 100644 --- a/src/rng/auto_rng/auto_rng.h +++ b/src/rng/auto_rng/auto_rng.h @@ -35,7 +35,6 @@ class BOTAN_DLL AutoSeeded_RNG : public RandomNumberGenerator { rng->add_entropy(in, len); } AutoSeeded_RNG() { rng = &global_state().global_rng(); } - ~AutoSeeded_RNG() { delete rng; } private: RandomNumberGenerator* rng; }; -- cgit v1.2.3