From 80a98a100bd934fc73f90f1153de78fe0df93847 Mon Sep 17 00:00:00 2001 From: Lynx Linden Date: Mon, 14 Jun 2010 16:43:06 +0100 Subject: EXT-7853: Made LLMutex destructor virtual. This fixes a potential resource leak whereby the destructor for LLCondition, which derives from LLMutex, is never called. --- indra/llcommon/llthread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indra/llcommon') diff --git a/indra/llcommon/llthread.h b/indra/llcommon/llthread.h index adef1a9192..dbb8ec5231 100644 --- a/indra/llcommon/llthread.h +++ b/indra/llcommon/llthread.h @@ -135,7 +135,7 @@ class LL_COMMON_API LLMutex { public: LLMutex(apr_pool_t *apr_poolp); // NULL pool constructs a new pool for the mutex - ~LLMutex(); + virtual ~LLMutex(); void lock(); // blocks void unlock(); -- cgit v1.2.3