From a8793cbe5229cc0ad16afe66489ffcffaac5bf5a Mon Sep 17 00:00:00 2001 From: Sonicadvance1 Date: Sun, 14 Feb 2010 14:33:04 +0000 Subject: [PATCH] =?UTF-8?q?=E3=81=86=E3=81=9D=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5057 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Common/Src/Thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Common/Src/Thread.cpp b/Source/Core/Common/Src/Thread.cpp index 87522a87f6..8346ccb592 100644 --- a/Source/Core/Common/Src/Thread.cpp +++ b/Source/Core/Common/Src/Thread.cpp @@ -422,7 +422,7 @@ void SetCurrentThreadName(const TCHAR* szThreadName) // creates a memory leak if it actually doesn't fail // since we don't delete it once we delete the thread // we are using a single threadname_key anyway for all threads - if(!pthread_setspecific(threadname_key, strdup(szThreadName))) + if(!pthread_setspecific(threadname_key, name)) free(name); INFO_LOG(COMMON, "%s(%s)\n", __FUNCTION__, szThreadName); }