From fc28cf099a3bd0a00ed6eb349e6b39625705b460 Mon Sep 17 00:00:00 2001 From: coppro Date: Fri, 19 Oct 2007 00:16:14 +0000 Subject: [PATCH] Fixed TLS git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@768 0fc631ac-6414-0410-93d0-97cfa31319b6 --- src/util/dynamic_arg.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/dynamic_arg.hpp b/src/util/dynamic_arg.hpp index 97562ccd..110dd28c 100644 --- a/src/util/dynamic_arg.hpp +++ b/src/util/dynamic_arg.hpp @@ -23,7 +23,7 @@ #ifdef _MSC_VER # define THREAD_LOCAL __declspec(thread) # define HAVE_TLS 1 -#elseif defined __linux__ +#elseif defined __linux # define THREAD_LOCAL __thread # define HAVE_TLS 1 #else @@ -102,7 +102,7 @@ ~ThreadLocalObject () { for (typename map::iterator i = objects.begin(); i != objects.end(); ++i) { - delete *i; + delete (*i).second; } } };